syms.h 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. // Repository to edit with srp commands
  9. #define SRP_REPO_EDIT SR_DS_CANDIDATE
  10. C_DECL_BEGIN
  11. // Types
  12. int srp_PLINE_SET(kcontext_t *context);
  13. int srp_PLINE_DEL(kcontext_t *context);
  14. int srp_PLINE_EDIT(kcontext_t *context);
  15. int srp_PLINE_INSERT_FROM(kcontext_t *context);
  16. int srp_PLINE_INSERT_TO(kcontext_t *context);
  17. // Completion/Help/Prompt
  18. int srp_compl(kcontext_t *context);
  19. int srp_help(kcontext_t *context);
  20. int srp_compl_insert_to(kcontext_t *context);
  21. int srp_help_insert_to(kcontext_t *context);
  22. int srp_prompt_edit_path(kcontext_t *context);
  23. // Operations
  24. int srp_set(kcontext_t *context);
  25. int srp_del(kcontext_t *context);
  26. int srp_edit(kcontext_t *context);
  27. int srp_top(kcontext_t *context);
  28. int srp_up(kcontext_t *context);
  29. int srp_insert(kcontext_t *context);
  30. int srp_commit(kcontext_t *context);
  31. C_DECL_END
  32. #endif // _syms_h