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 | |
---|
11 | struct roar_command { |
---|
12 | int cmd; |
---|
13 | char name[COMMAND_MAX_NAMELEN]; |
---|
14 | int (*handler)(int client, struct roar_message * mes, char * data); |
---|
15 | }; |
---|
16 | |
---|
17 | int command_get_id_by_cmd (int command); |
---|
18 | int command_exec (int client, struct roar_message * mes, char * data); |
---|
19 | int command_get_name (int command, char ** name); |
---|
20 | |
---|
21 | #endif |
---|
22 | |
---|
23 | //ll |
---|
Note: See
TracBrowser
for help on using the repository browser.