syms.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /*
  2. * syms.h
  3. */
  4. #ifndef _syms_h
  5. #define _syms_h
  6. #include <faux/faux.h>
  7. #include <klish/kcontext_base.h>
  8. #include "pline.h"
  9. // Repository to edit with srp commands
  10. #define SRP_REPO_EDIT SR_DS_CANDIDATE
  11. // Defaut parse options
  12. #define SRP_DEFAULT_PARSE_OPTS (PPARSE_MULTI_KEYS_W_STMT)
  13. C_DECL_BEGIN
  14. // Types
  15. int srp_PLINE_SET(kcontext_t *context);
  16. int srp_PLINE_DEL(kcontext_t *context);
  17. int srp_PLINE_EDIT(kcontext_t *context);
  18. int srp_PLINE_INSERT_FROM(kcontext_t *context);
  19. int srp_PLINE_INSERT_TO(kcontext_t *context);
  20. // Completion/Help/Prompt
  21. int srp_compl(kcontext_t *context);
  22. int srp_help(kcontext_t *context);
  23. int srp_compl_insert_to(kcontext_t *context);
  24. int srp_help_insert_to(kcontext_t *context);
  25. int srp_prompt_edit_path(kcontext_t *context);
  26. // Operations
  27. int srp_set(kcontext_t *context);
  28. int srp_del(kcontext_t *context);
  29. int srp_edit(kcontext_t *context);
  30. int srp_top(kcontext_t *context);
  31. int srp_up(kcontext_t *context);
  32. int srp_insert(kcontext_t *context);
  33. int srp_commit(kcontext_t *context);
  34. int srp_rollback(kcontext_t *context);
  35. int srp_show(kcontext_t *context);
  36. int srp_deactivate(kcontext_t *context);
  37. C_DECL_END
  38. #endif // _syms_h