Changeset 21153 for trunk/Ohana/src/opihi/include/shell.h
- Timestamp:
- Jan 22, 2009, 10:43:26 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/include/shell.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/include/shell.h
r17419 r21153 16 16 typedef enum {GP_LOG, GP_ERR} gpDest; 17 17 18 typedef int CommandF ( );18 typedef int CommandF (int argc, char **argv); 19 19 20 20 typedef struct sockaddr_in SockAddress; … … 65 65 int opihi PROTO((int argc, char **argv)); 66 66 int multicommand PROTO((char *line)); 67 int getServer ( );67 int getServer (void); 68 68 void multicommand_InitServer PROTO((void)); 69 void multicommand_StopServer ( );69 void multicommand_StopServer (void); 70 70 71 71 int command PROTO((char *line, char **outline, int VERBOSE)); … … 74 74 char *parse PROTO((char *line)); 75 75 char **parse_commands PROTO((char *, int *)); 76 void welcome PROTO(( ));76 void welcome PROTO((void)); 77 77 78 78 int add_listentry PROTO((int ThisList, char *line)); … … 85 85 int is_task_exec PROTO((char *line)); 86 86 int is_macro_create PROTO((char *line)); 87 void InitLists PROTO(( ));88 int current_list_depth ( );89 int increase_list_depth ( );90 int decrease_list_depth ( );87 void InitLists PROTO((void)); 88 int current_list_depth (void); 89 int increase_list_depth (void); 90 int decrease_list_depth (void); 91 91 char *get_next_listentry (int ThisList); 92 92 93 void InitCommands PROTO(( ));93 void InitCommands PROTO((void)); 94 94 void AddCommand PROTO((Command *new)); 95 95 int DeleteCommand PROTO((Command *command)); … … 105 105 int GetMacroDepth PROTO((void)); 106 106 void ListMacro PROTO((Macro *macro)); 107 void ListMacros PROTO(( ));107 void ListMacros PROTO((void)); 108 108 void FreeMacro PROTO((Macro *macro)); 109 109 CommandF *find_macro_command PROTO((char *name)); … … 151 151 char *memstr PROTO((char *m1, char *m2, int n)); 152 152 int write_fmt PROTO((int fd, char *format, ...)); 153 char *opihi_version PROTO(( ));153 char *opihi_version PROTO((void)); 154 154 char *strip_version PROTO((char *input)); 155 155 156 156 /* gprint functions */ 157 void gprintInit PROTO(( ));157 void gprintInit PROTO((void)); 158 158 gpStream *gprintGetStream PROTO((gpDest dest)); 159 159 void gprintSetBuffer PROTO((gpDest dest)); … … 172 172 int GetClientSocket (char *hostname); 173 173 int InitServerSocket_Named (char *hostname, SockAddress *Address); 174 int DefineValidIP ( );174 int DefineValidIP (void); 175 175 176 void FreeCommands ( );177 void FreeMacros ( );178 void FreeBuffers ( );179 void FreeVectors ( );180 void FreeVariables ( );181 void FreeLists ( );176 void FreeCommands (void); 177 void FreeMacros (void); 178 void FreeBuffers (void); 179 void FreeVectors (void); 180 void FreeVariables (void); 181 void FreeLists (void); 182 182 183 183 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
