iaction.h 635 B

1234567891011121314151617181920212223242526272829303132333435
  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 *in;
  14. char *out;
  15. char *exec_on;
  16. char *update_retcode;
  17. char *permanent;
  18. char *sync;
  19. char *script;
  20. } iaction_t;
  21. C_DECL_BEGIN
  22. bool_t iaction_parse(const iaction_t *info, kaction_t *action,
  23. faux_error_t *error);
  24. kaction_t *iaction_load(const iaction_t *iaction, faux_error_t *error);
  25. char *iaction_deploy(const kaction_t *kaction, int level);
  26. C_DECL_END
  27. #endif // _klish_iaction_h