aboutsummaryrefslogtreecommitdiffstats
path: root/plugtest.c
blob: 9d8011899e97710b5f91d93baa3fdd5d49278866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdio.h>

#include "defines.h"
#include "cmd.h"
#include "tty.h"

/* Bare test plugin for powwow
 * Author: Steve Slaven - http://hoopajoo.net
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 */

void plugtest( char *arg );

cmdstruct mycommand = { NULL, NULL, "plugtest", plugtest, "test command" };

void powwow_init() {
	tty_printf( "Init plugtest.so!\n" );

	cmd_add_command( &mycommand );
}

void plugtest( char *arg ) {
	tty_printf( "Arg was '%s'\n", arg );
}