kptype.h 482 B

12345678910111213141516171819202122232425262728
  1. /** @file kptype.h
  2. *
  3. * @brief Klish scheme's "ptype" entry
  4. */
  5. #ifndef _klish_kptype_h
  6. #define _klish_kptype_h
  7. typedef struct kptype_s kptype_t;
  8. typedef struct iptype_s {
  9. char *name;
  10. char *help;
  11. } iptype_t;
  12. C_DECL_BEGIN
  13. kptype_t *kptype_new(iptype_t info);
  14. kptype_t *kptype_new_static(iptype_t info);
  15. void kptype_free(kptype_t *ptype);
  16. const char *kptype_name(const kptype_t *ptype);
  17. const char *kptype_help(const kptype_t *ptype);
  18. C_DECL_END
  19. #endif // _klish_kptype_h