diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-09-12 01:58:36 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:14 -0600 |
commit | 3ddffd0e4e0fde82dc7f3b8b6233ba24b5b184ef (patch) | |
tree | b8becac95e2aa52cd5d7b6d3f48016f4a01c7211 /wrapper/rvs.c | |
parent | 3a569f2c8591f219603b7a4778a1e4f7e77e0939 (diff) |
I had a lot of it working, now I don't.
I'm going to commit before I screw more up.
Diffstat (limited to 'wrapper/rvs.c')
-rw-r--r-- | wrapper/rvs.c | 16 |
1 files changed, 13 insertions, 3 deletions
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; } |