forward declare ltdl stuff

This commit is contained in:
Artem Pavlenko 2007-03-22 10:55:43 +00:00
parent 8b74a301fb
commit 5daa49ff41
3 changed files with 13 additions and 12 deletions

View file

@ -24,27 +24,25 @@
#ifndef PLUGIN_HPP
#define PLUGIN_HPP
// ltdl
#include <ltdl.h>
// stl
#include <string>
// boost
#include <boost/utility.hpp>
typedef struct lt_dlhandle_struct * lt_dlhandle;
namespace mapnik
{
class PluginInfo : boost::noncopyable
{
class PluginInfo : boost::noncopyable
{
private:
std::string name_;
lt_dlhandle module_;
std::string name_;
lt_dlhandle module_;
public:
PluginInfo (const std::string& name,const lt_dlhandle module);
~PluginInfo();
const std::string& name() const;
lt_dlhandle handle() const;
};
PluginInfo (const std::string& name,const lt_dlhandle module);
~PluginInfo();
const std::string& name() const;
lt_dlhandle handle() const;
};
}
#endif //PLUGIN_HPP

View file

@ -29,6 +29,8 @@
#include <boost/filesystem/operations.hpp>
// mapnik
#include <mapnik/datasource_cache.hpp>
// ltdl
#include <ltdl.h>
namespace mapnik
{

View file

@ -22,6 +22,7 @@
//$Id: plugin.cpp 17 2005-03-08 23:58:43Z pavlenko $
#include <ltdl.h>
#include <mapnik/plugin.hpp>
namespace mapnik