nfs-ganesha 1.4
|
00001 00020 #ifndef _SHELL_TYPES_H 00021 #define _SHELL_TYPES_H 00022 00023 #include <stdio.h> 00024 00027 typedef struct command_def__ 00028 { 00029 00030 /* name of a command */ 00031 char *command_name; 00032 00033 /* function for processing the command : */ 00034 int (*command_func) (int, char **, FILE *); 00035 00036 /* short help message */ 00037 char *command_help; 00038 00039 } command_def_t; 00040 00043 typedef struct layer_def__ 00044 { 00045 00046 char *layer_name; 00047 command_def_t *command_list; 00048 char *layer_description; 00049 void (*setlog_func) (int); 00050 00051 } layer_def_t; 00052 00053 /* shell state structure */ 00054 00055 typedef struct shell_state__ 00056 { 00057 FILE *input_stream; 00058 int interactive; 00059 layer_def_t *layer; 00060 int status; 00061 int verbose; 00062 int debug_level; 00063 int line; 00064 } shell_state_t; 00065 00066 #endif