kptype.h 487 B

1234567891011121314151617181920212223242526
  1. /** @file kptype.h
  2. *
  3. * @brief Klish scheme's "ptype" entry
  4. */
  5. #ifndef _klish_kptype_h
  6. #define _klish_kptype_h
  7. #include <faux/error.h>
  8. #include <klish/kaction.h>
  9. typedef struct kptype_s kptype_t;
  10. C_DECL_BEGIN
  11. kptype_t *kptype_new(const char *name);
  12. void kptype_free(kptype_t *ptype);
  13. const char *kptype_name(const kptype_t *ptype);
  14. const char *kptype_help(const kptype_t *ptype);
  15. bool_t kptype_set_help(kptype_t *ptype, const char *help);
  16. C_DECL_END
  17. #endif // _klish_kptype_h