1
0

var.h 676 B

12345678910111213141516171819202122232425
  1. #ifndef _clish_var_h
  2. #define _clish_var_h
  3. #include "lub/types.h"
  4. #include "clish/action.h"
  5. typedef struct clish_var_s clish_var_t;
  6. clish_var_t *clish_var_new(const char *name);
  7. void clish_var_delete(void *instance);
  8. void clish_var_dump(const clish_var_t *instance);
  9. int clish_var_compare(const void *first, const void *second);
  10. int clish_var_fn_find_by_name(const void *key, const void *data);
  11. _CLISH_GET_STR(var, name);
  12. _CLISH_SET(var, bool_t, dynamic);
  13. _CLISH_GET(var, bool_t, dynamic);
  14. _CLISH_SET_STR(var, value);
  15. _CLISH_GET_STR(var, value);
  16. _CLISH_SET_STR(var, saved);
  17. _CLISH_GET_STR(var, saved);
  18. _CLISH_GET(var, clish_action_t *, action);
  19. #endif /* _clish_var_h */