var.h 761 B

1234567891011121314151617181920212223242526
  1. #ifndef _clish_var_h
  2. #define _clish_var_h
  3. #include "lub/types.h"
  4. #include "lub/bintree.h"
  5. #include "clish/action.h"
  6. typedef struct clish_var_s clish_var_t;
  7. int clish_var_bt_compare(const void *clientnode, const void *clientkey);
  8. void clish_var_bt_getkey(const void *clientnode, lub_bintree_key_t * key);
  9. size_t clish_var_bt_offset(void);
  10. clish_var_t *clish_var_new(const char *name);
  11. void clish_var_delete(clish_var_t *instance);
  12. void clish_var_dump(const clish_var_t *instance);
  13. _CLISH_GET_STR(var, name);
  14. _CLISH_SET(var, bool_t, dynamic);
  15. _CLISH_GET(var, bool_t, dynamic);
  16. _CLISH_SET_STR(var, value);
  17. _CLISH_GET_STR(var, value);
  18. _CLISH_SET_STR(var, saved);
  19. _CLISH_GET_STR(var, saved);
  20. _CLISH_GET(var, clish_action_t *, action);
  21. #endif /* _clish_var_h */