Subversion Repositories HelenOS

Rev

Rev 3397 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3397 Rev 3492
Line 17... Line 17...
17
/* TODO: Move me, other files duplicate these needlessly */
17
/* TODO: Move me, other files duplicate these needlessly */
18
#define BUFF_LARGE  1024
18
#define BUFF_LARGE  1024
19
#define BUFF_SMALL  255
19
#define BUFF_SMALL  255
20
 
20
 
21
/* Return macros for int type entry points */
21
/* Return macros for int type entry points */
22
#define CMD_FAILURE (int*)1
22
#define CMD_FAILURE 1
23
#define CMD_SUCCESS 0
23
#define CMD_SUCCESS 0
24
#define CMD_VOID (void *)NULL
-
 
25
 
24
 
26
/* Types for module command entry and help */
25
/* Types for module command entry and help */
27
typedef int * (* mod_entry_t)(char **);
26
typedef int (* mod_entry_t)(char **);
28
typedef void * (* mod_help_t)(unsigned int);
27
typedef void (* mod_help_t)(unsigned int);
29
 
28
 
30
/* Built-in commands need to be able to modify cliuser_t */
29
/* Built-in commands need to be able to modify cliuser_t */
31
typedef int * (* builtin_entry_t)(char **, cliuser_t *);
30
typedef int (* builtin_entry_t)(char **, cliuser_t *);
32
typedef void * (* builtin_help_t)(unsigned int);
31
typedef void (* builtin_help_t)(unsigned int);
33
 
32
 
34
/* Module structure */
33
/* Module structure */
35
typedef struct {
34
typedef struct {
36
    char *name;         /* Name of the command */
35
    char *name;         /* Name of the command */
37
    char *desc;         /* Description of the command */
36
    char *desc;         /* Description of the command */