forward declare the lt_dlhandle type to avoid needing header in datasource_cache.hpp

This commit is contained in:
Dane Springmeyer 2013-03-22 17:37:56 -07:00
parent 4e6b6d5a62
commit 3256037eb6
2 changed files with 6 additions and 2 deletions

View file

@ -26,7 +26,6 @@
// mapnik
#include <mapnik/utils.hpp>
#include <mapnik/params.hpp>
#include <mapnik/plugin.hpp>
#include <mapnik/datasource.hpp>
#include <mapnik/noncopyable.hpp>
@ -36,8 +35,12 @@
// stl
#include <map>
class lt__handle;
namespace mapnik {
class PluginInfo;
class MAPNIK_DECL datasource_cache
: public singleton<datasource_cache, CreateStatic>,
private mapnik::noncopyable
@ -54,7 +57,7 @@ private:
~datasource_cache();
std::map<std::string,boost::shared_ptr<PluginInfo> > plugins_;
bool registered_;
bool insert(std::string const& name,const lt_dlhandle module);
bool insert(std::string const& name,lt__handle * const module);
std::vector<std::string> plugin_directories_;
};
}

View file

@ -25,6 +25,7 @@
#include <mapnik/datasource_cache.hpp>
#include <mapnik/config_error.hpp>
#include <mapnik/params.hpp>
#include <mapnik/plugin.hpp>
// boost
#include <boost/make_shared.hpp>