Changeset aad166a
- Timestamp:
- Jun 19, 2011, 1:49:34 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 117c21c
- Parents:
- ea68035
- git-author:
- Anders Kaseorg <andersk@mit.edu> (06/18/11 20:40:55)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/19/11 01:49:34)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
r4c7c21f raad166a 5 5 #include "owl.h" 6 6 7 extern const owl_cmd commands_to_init[];8 9 7 /**************************************************************************/ 10 8 /***************************** COMMAND DICT *******************************/ … … 13 11 int owl_cmddict_setup(owl_cmddict *cd) { 14 12 owl_cmddict_init(cd); 15 if (0 != owl_cmddict_add_from_list(cd, commands_to_init)) return(-1); 16 return(0); 13 return owl_cmd_add_defaults(cd); 17 14 } 18 15 -
commands.c
r697221f raad166a 41 41 42 42 43 const owl_cmd commands_to_init[] 44 = { 43 int owl_cmd_add_defaults(owl_cmddict *cd) 44 { 45 owl_cmd commands_to_init[] = { 46 45 47 OWLCMD_ARGS("zlog", owl_command_zlog, OWL_CTX_ANY, 46 48 "send a login or logout notification", … … 1037 1039 { NULL, NULL, NULL, NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL } 1038 1040 1039 }; 1041 }; 1042 1043 return owl_cmddict_add_from_list(cd, commands_to_init); 1044 } 1040 1045 1041 1046 void owl_command_info(void)
Note: See TracChangeset
for help on using the changeset viewer.