aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.h
blob: 1c655fb7f35016f2e005aed145098eed216c667b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* public things from cmd.c */

#ifndef _CMD_H_
#define _CMD_H_

typedef struct cmdstruct {
    char *sortname;             /* set to NULL if you want to sort by
                                 * command name */
    char *name;			/* command name */
    char *help;			/* short help */
    function_str funct;		/* function to call */
    struct cmdstruct *next;
} cmdstruct;

extern cmdstruct *commands;

void show_stat		__P ((void));

void cmd_add_command( cmdstruct *cmd );

void initialize_cmd(void);

int print_all_options __P1 (FILE *,file);

#endif /* _CMD_H_ */