private.h 477 B

1234567891011121314151617181920
  1. /*
  2. * nspace.h
  3. */
  4. #include <regex.h>
  5. #include "clish/nspace.h"
  6. struct clish_nspace_s {
  7. lub_list_t *cmds; /* Tree of command links */
  8. clish_view_t *view; /* The view to import commands from */
  9. char *view_name; /* The text name of view to import command from */
  10. char *prefix; /* if non NULL the prefix for imported commands */
  11. char *access;
  12. regex_t prefix_regex;
  13. bool_t help;
  14. bool_t completion;
  15. bool_t context_help;
  16. bool_t inherit;
  17. clish_command_t *prefix_cmd;
  18. };