From 3ddffd0e4e0fde82dc7f3b8b6233ba24b5b184ef Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 12 Sep 2009 01:58:36 -0400 Subject: I had a lot of it working, now I don't. I'm going to commit before I screw more up. --- wrapper/rvs.c | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'wrapper/rvs.c') diff --git a/wrapper/rvs.c b/wrapper/rvs.c index 9125ff0..881b65f 100644 --- a/wrapper/rvs.c +++ b/wrapper/rvs.c @@ -20,19 +20,29 @@ const char *ver="0.8c"; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/*#define DEBUG*/ +#define DEBUG #include "rvs.h" -#include "plugin.c" -/*#include "debug.h"*/ +#include "plugins.h" +#include "plugin-load.h" +#include "plugin-find.h" +#include "plugin-depend.h" const char *libexecdir="./plugins"; const char *plugin_conf="plugin.conf"; +void foobar(){puts("");} + int main ( int argc, char *argv[] ) { struct plugin *plugins=load_plugins(libexecdir,plugin_conf); + if (argc > 1) { + struct plugin_command_list *list; + list=plugin_find_commands(plugins,argv[1]); + plugin_depend_list(list,plugins); + } plugin_free_plugin(plugins); + foobar(); return 0; } -- cgit v1.2.3-54-g00ecf