aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugtest.c
blob: 72b6d3855b3c6c7c098d9cd3a54bcaea6ea9b9c5 (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, "plugtest", "test command", plugtest, NULL };

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

	cmd_add_command( &mycommand );
}

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