source: roaraudio/roard/include/commands.h @ 5910:cb47378a0e0b

roaraudio init
Last change on this file since 5910:cb47378a0e0b was 0:2a41d2f42394, checked in by phi, 16 years ago

Initial revision

File size: 461 bytes
Line 
1//commands.h:
2
3#ifndef _COMMANDS_H_
4#define _COMMANDS_H_
5
6#include <roaraudio.h>
7
8#define COMMAND_MAX_NAMELEN  80
9#define COMMAND_MAX_COMMANDS 32
10
11struct roar_command {
12 int cmd;
13 char name[COMMAND_MAX_NAMELEN];
14 int (*handler)(int client, struct roar_message * mes, char * data);
15};
16
17int command_get_id_by_cmd (int command);
18int command_exec (int client, struct roar_message * mes, char * data);
19int command_get_name (int command, char ** name);
20
21#endif
22
23//ll
Note: See TracBrowser for help on using the repository browser.