aboutsummaryrefslogtreecommitdiffstats
path: root/plugtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugtest.c')
-rw-r--r--plugtest.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugtest.c b/plugtest.c
new file mode 100644
index 0000000..596eab1
--- /dev/null
+++ b/plugtest.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+
+#include "defines.h"
+#include "cmd.h"
+
+void plugtest( char *arg );
+
+cmdstruct mycommand = { NULL, "plugtest", "test command", plugtest, NULL };
+
+void powwow_init() {
+ printf( "Init plugtest.so!\n" );
+
+ cmd_add_command( &mycommand );
+}
+
+void plugtest( char *arg ) {
+ printf( "Arg was '%s'\n", arg );
+}