Show
Ignore:
Timestamp:
09/06/08 23:51:16 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1220745076 +0000
git-parent:

[aa6712ff5754eb2cffd6bc6260529c77b5878dbe]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1220745076 +0000
Message:

pull help and docs into the console, refs #21

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_console.h

    r7180374 rdb656f3  
    3434/* This performs a pop (exiting if at toplevel) */ 
    3535extern cmd_info_t console_command_exit; 
     36extern cmd_info_t console_command_help; 
    3637extern cmd_info_t console_command_shutdown; 
    3738extern cmd_info_t console_command_restart; 
     
    5960 
    6061typedef struct _console_state_stack { 
     62  char *name; 
    6163  noit_console_state_t *state; 
    6264  void *userdata; 
     
    121123 
    122124API_EXPORT(int) 
     125  noit_console_help(noit_console_closure_t ncct, int argc, char **argv, 
     126                    noit_console_state_t *, void *); 
     127 
     128API_EXPORT(int) 
    123129  noit_console_shutdown(noit_console_closure_t ncct, int argc, char **argv, 
    124130                        noit_console_state_t *, void *); 
     
    171177         noit_console_state_t *dstate, void *closure); 
    172178 
     179API_EXPORT(int) 
     180  noit_console_write_xml(void *vncct, const char *buffer, int len); 
     181 
     182API_EXPORT(int) 
     183  noit_console_close_xml(void *vncct); 
     184 
     185API_EXPORT(void) 
     186  noit_console_add_help(const char *topic, console_cmd_func_t topic_func); 
     187 
    173188#endif