From fa7df2006c0e241314212644c1ec5e362220defd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Jun 2006 20:04:28 +0000 Subject: Added a complete, general plugin manager system. There's a little bit of cleanup to do before it's totally ready, but it's looking good... --- src/test/params.cpp | 3 ++- src/test/plugin/main.cpp | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/test/plugin/main.cpp (limited to 'src/test') diff --git a/src/test/params.cpp b/src/test/params.cpp index 7bd2c0c..bb62047 100644 --- a/src/test/params.cpp +++ b/src/test/params.cpp @@ -16,7 +16,8 @@ int main( int argc, char *argv[] ) "Set the bool off." }, { "char", 'c', PPROC_CHAR, NULL, &cChar, "Set the char." }, - { NULL, '\0', 0, NULL, NULL, NULL } + { NULL, '\0',0, NULL, NULL, + NULL } }; processParams( argc, argv, table ); diff --git a/src/test/plugin/main.cpp b/src/test/plugin/main.cpp new file mode 100644 index 0000000..51c8390 --- /dev/null +++ b/src/test/plugin/main.cpp @@ -0,0 +1,14 @@ +#include "plugger.h" +#include "plugin.h" + +int main() +{ + Plugger p; + + p.registerExternalPlugin( "./guy.so", "Guy" ); + + Plugin *t = p.instantiate( "Guy" ); + + p.destroy( t ); +} + -- cgit v1.2.3