iaction.h 601 B

1234567891011121314151617181920212223242526272829303132
  1. /** @file iaction.h
  2. *
  3. * @brief Klish scheme's "action" entry
  4. */
  5. #ifndef _klish_iaction_h
  6. #define _klish_iaction_h
  7. #include <faux/error.h>
  8. #include <klish/kaction.h>
  9. typedef struct iaction_s {
  10. char *sym;
  11. char *lock;
  12. char *interrupt;
  13. char *interactive;
  14. char *exec_on;
  15. char *update_retcode;
  16. char *script;
  17. } iaction_t;
  18. C_DECL_BEGIN
  19. bool_t iaction_parse(const iaction_t *info, kaction_t *action,
  20. faux_error_t *error);
  21. kaction_t *iaction_load(const iaction_t *iaction, faux_error_t *error);
  22. char *iaction_deploy(const kaction_t *kaction, int level);
  23. C_DECL_END
  24. #endif // _klish_iaction_h