1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
/*
$Id: commands.h,v 1.5 2007-04-11 10:43:26+01 taviso Exp $
*/
#ifndef _COMMANDS_INC
#define _COMMANDS_INC /* include guard */
/*lint -esym(534,registercommand) okay to ignore return value */
typedef struct {
bool(*handler) (globals_t * vars, char **argv, unsigned argc);
char *command;
char *shortdoc;
char *longdoc;
} command_t;
bool registercommand(const char *command, void *handler, list_t * commands,
char *shortdoc, char *longdoc);
bool execcommand(globals_t * vars, const char *commandline);
#endif
|