diff options
author | David Robillard <d@drobilla.net> | 2007-06-08 05:03:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-06-08 05:03:34 +0000 |
commit | 10ff780087c9dc4e0e9777181ba6b6aca472ae61 (patch) | |
tree | 2ebaac8d7ed28b247354c669536760d8c200bb26 /src/libs/engine/Plugin.h | |
parent | 70f528c5ca3d95af93557e1e612766852b6192ca (diff) | |
download | ingen-10ff780087c9dc4e0e9777181ba6b6aca472ae61.tar.gz ingen-10ff780087c9dc4e0e9777181ba6b6aca472ae61.tar.bz2 ingen-10ff780087c9dc4e0e9777181ba6b6aca472ae61.zip |
Remove PluginLibrary, use Glib::Module instead.
git-svn-id: http://svn.drobilla.net/lad/ingen@535 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/Plugin.h')
-rw-r--r-- | src/libs/engine/Plugin.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/src/libs/engine/Plugin.h b/src/libs/engine/Plugin.h index 47faddc1..1a43e6fc 100644 --- a/src/libs/engine/Plugin.h +++ b/src/libs/engine/Plugin.h @@ -21,6 +21,7 @@ #include "config.h" #include <cstdlib> +#include <glibmm/module.h> #include <boost/utility.hpp> #include <dlfcn.h> #include <string> @@ -34,7 +35,6 @@ using std::cerr; using std::endl; namespace Ingen { -class PluginLibrary; class Patch; class Node; @@ -54,7 +54,7 @@ public: : _type(type) , _uri(uri) , _id(0) - , _library(NULL) + , _module(NULL) #ifdef HAVE_SLV2 , _slv2_plugin(NULL) #endif @@ -84,26 +84,25 @@ public: _plug_label = copy->_plug_label; _name = copy->_name; _id = _id; - _library = copy->_library; + _module = copy->_module; } - Type type() const { return _type; } - void type(Type t) { _type = t; } - const string& lib_path() const { return _lib_path; } - void lib_path(const string& s) { _lib_path = s; _lib_name = _lib_path.substr(_lib_path.find_last_of("/")+1); } - string lib_name() const { return _lib_name; } - void lib_name(const string& s) { _lib_name = s; } - const string& plug_label() const { return _plug_label; } - void plug_label(const string& s) { _plug_label = s; } - const string& name() const { return _name; } - void name(const string& s) { _name = s; } - unsigned long id() const { return _id; } - void id(unsigned long i) { _id = i; } - const string uri() const { return _uri; } - void uri(const string& s) { _uri = s; } - - PluginLibrary* library() const { return _library; } - void library(PluginLibrary* const library) { _library = library; } + Type type() const { return _type; } + void type(Type t) { _type = t; } + const string& lib_path() const { return _lib_path; } + void lib_path(const string& s) { _lib_path = s; _lib_name = _lib_path.substr(_lib_path.find_last_of("/")+1); } + string lib_name() const { return _lib_name; } + void lib_name(const string& s) { _lib_name = s; } + const string& plug_label() const { return _plug_label; } + void plug_label(const string& s) { _plug_label = s; } + const string& name() const { return _name; } + void name(const string& s) { _name = s; } + unsigned long id() const { return _id; } + void id(unsigned long i) { _id = i; } + const string uri() const { return _uri; } + void uri(const string& s) { _uri = s; } + Glib::Module* module() const { return _module; } + void module(Glib::Module* module) { _module = module; } const char* type_string() const { if (_type == LADSPA) return "LADSPA"; @@ -143,7 +142,7 @@ private: string _name; ///< LADSPA/DSSI only unsigned long _id; ///< LADSPA/DSSI only - PluginLibrary* _library; + Glib::Module* _module; #ifdef HAVE_SLV2 SLV2Plugin _slv2_plugin; |