version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_commands_h = | | * static char *rcsid_commands_h = |
* "$Id: commands.h,v 1.4 2005/08/12 13:46:34 ryo_saeba Exp $"; | | * "$Id: commands.h,v 1.5 2006/03/18 15:05:32 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
#ifndef COMMANDS_H | | #ifndef COMMANDS_H |
#define COMMANDS_H | | #define COMMANDS_H |
| | |
typedef int (*CommFunc)(object *op, char *params); | | typedef int (*command_function)(object *op, char *params); |
| | |
typedef struct { /* global list's structure */ | | typedef struct { /* global list's structure */ |
const char *name; | | const char *name; |
CommFunc func; | | command_function func; |
float time; /* How long it takes to execute this command */ | | float time; /* How long it takes to execute this command */ |
} CommArray_s; | | } command_array_struct; |
| | |
| | |
extern CommArray_s Commands[],NewServerCommands [],SocketCommands[], | | extern command_array_struct Commands[],NewServerCommands [],SocketCommands[], |
WizCommands [], CommunicationCommands[]; | | WizCommands [], CommunicationCommands[]; |
| | |
extern const int CommandsSize,NewServerCommandSize, | | extern const int CommandsSize,NewServerCommandSize, |