Logo Search packages:      
Sourcecode: scanmem version File versions  Download package


 $Id: commands.h,v 1.5 2007-04-11 10:43:26+01 taviso Exp $

#define _COMMANDS_INC           /* include guard */

#include <stdbool.h>

#include "scanmem.h"

/*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);


Generated by  Doxygen 1.6.0   Back to index