action.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * action.h
  3. */
  4. #ifndef _clish_action_h
  5. #define _clish_action_h
  6. typedef struct clish_action_s clish_action_t;
  7. #include "lub/bintree.h"
  8. /*=====================================
  9. * ACTION INTERFACE
  10. *===================================== */
  11. /*-----------------
  12. * meta functions
  13. *----------------- */
  14. clish_action_t *clish_action_new(void);
  15. /*-----------------
  16. * methods
  17. *----------------- */
  18. void clish_action_delete(clish_action_t *instance);
  19. void clish_action_dump(const clish_action_t *instance);
  20. /*-----------------
  21. * attributes
  22. *----------------- */
  23. void clish_action__set_script(clish_action_t *instance, const char *script);
  24. char *clish_action__get_script(const clish_action_t *instance);
  25. void clish_action__set_builtin(clish_action_t *instance, const char *builtin);
  26. const char *clish_action__get_builtin(const clish_action_t *instance);
  27. void clish_action__set_shebang(clish_action_t *instance, const char *shebang);
  28. const char *clish_action__get_shebang(const clish_action_t *instance);
  29. #endif /* _clish_action_h */