1
0

udata.h 747 B

123456789101112131415161718192021222324252627
  1. /*
  2. * udata.h
  3. */
  4. /**
  5. \ingroup clish
  6. \defgroup clish_udata udata
  7. @{
  8. \brief This class represents the top level container for CLI user data.
  9. */
  10. #ifndef _clish_udata_h
  11. #define _clish_udata_h
  12. typedef struct clish_udata_s clish_udata_t;
  13. /*=================================
  14. * USERDATA INTERFACE
  15. *================================= */
  16. int clish_udata_compare(const void *first, const void *second);
  17. clish_udata_t *clish_udata_new(const char *name, void *data);
  18. void *clish_udata_free(clish_udata_t *instance);
  19. void *clish_udata__get_data(const clish_udata_t *instance);
  20. int clish_udata__set_data(clish_udata_t *instance, void *data);
  21. char *clish_udata__get_name(const clish_udata_t *instance);
  22. #endif /* _clish_udata_h */
  23. /** @} clish_udata */