udata.h 626 B

12345678910111213141516171819202122232425262728
  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. #include "clish/macros.h"
  13. typedef struct clish_udata_s clish_udata_t;
  14. int clish_udata_compare(const void *first, const void *second);
  15. clish_udata_t *clish_udata_new(const char *name, void *data);
  16. void *clish_udata_free(clish_udata_t *instance);
  17. void clish_udata_delete(void *data);
  18. _CLISH_SET(udata, void *, data);
  19. _CLISH_GET(udata, void *, data);
  20. _CLISH_GET_STR(udata, name);
  21. #endif /* _clish_udata_h */
  22. /** @} clish_udata */