From 579a58106e541ef4a005eceaf4577048c69fa539 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 5 Jun 2006 20:18:00 +0000 Subject: Fixes to the plugin system, it's a little tricky to test, but it's looking good. --- tests/guy.cpp | 22 ++++++++++++++++++++++ tests/makeplugin.sh | 3 +++ 2 files changed, 25 insertions(+) create mode 100644 tests/guy.cpp create mode 100755 tests/makeplugin.sh (limited to 'tests') diff --git a/tests/guy.cpp b/tests/guy.cpp new file mode 100644 index 0000000..6510771 --- /dev/null +++ b/tests/guy.cpp @@ -0,0 +1,22 @@ +#include "stdio.h" +#include "plugin.h" +#include "plugger.h" + +class Guy : public Plugin +{ +public: + Guy() + { + printf("I'm guy!\n"); + } + + virtual ~Guy() + { + printf("Guy is dead...\n"); + } + +private: +}; + +PluginInterface( Guy, Plugin, "Mike", 0, 1 ) + diff --git a/tests/makeplugin.sh b/tests/makeplugin.sh new file mode 100755 index 0000000..086fefd --- /dev/null +++ b/tests/makeplugin.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +g++ -fPIC -shared -Wl,-soname,guy.so -o guy.so -I../src -I../src/test/plugin guy.cpp ../src/test/plugin/plugin.cpp -- cgit v1.2.3