private.h 620 B

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