1
0

udata.h 589 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. #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. _CLISH_SET(udata, void *, data);
  18. _CLISH_GET(udata, void *, data);
  19. _CLISH_GET_STR(udata, name);
  20. #endif /* _clish_udata_h */
  21. /** @} clish_udata */