private.h 536 B

123456789101112131415161718192021
  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 *prefix; /* if non NULL the prefix for imported commands */
  13. regex_t prefix_regex;
  14. bool_t help;
  15. bool_t completion;
  16. bool_t context_help;
  17. bool_t inherit;
  18. clish_command_t * prefix_cmd;
  19. };