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

commands.h

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

#ifndef _COMMANDS_INC
#define _COMMANDS_INC           /* include guard */

#include <stdbool.h>

#include "scanmem.h"

/*lint -esym(534,registercommand) okay to ignore return value */

00014 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

Generated by  Doxygen 1.6.0   Back to index