1 #include <stdio.h> 2 3 #include "defines.h" 4 #include "cmd.h" 5 #include "tty.h" 6 7 /* Bare test plugin for powwow 8 * Author: Steve Slaven - http://hoopajoo.net 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 */ 16 17 void plugtest( char *arg ); 18 19 cmdstruct mycommand = { NULL, "plugtest", "test command", plugtest, NULL }; 20 powwow_init()21void powwow_init() { 22 tty_printf( "Init plugtest.so!\n" ); 23 24 cmd_add_command( &mycommand ); 25 } 26 plugtest(char * arg)27void plugtest( char *arg ) { 28 tty_printf( "Arg was '%s'\n", arg ); 29 } 30