private.h 675 B

123456789101112131415161718192021222324
  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. clish_view_t *pview; /* The view we are a child of */
  13. char *view_name; /* The text name of view to import command from */
  14. char *prefix; /* if non NULL the prefix for imported commands */
  15. char *access;
  16. regex_t prefix_regex;
  17. bool_t help;
  18. bool_t completion;
  19. bool_t context_help;
  20. bool_t inherit;
  21. clish_command_t * prefix_cmd;
  22. };