12345678910111213141516171819202122232425 |
- #ifndef _clish_var_h
- #define _clish_var_h
- #include "lub/types.h"
- #include "clish/action.h"
- typedef struct clish_var_s clish_var_t;
- clish_var_t *clish_var_new(const char *name);
- void clish_var_delete(void *instance);
- void clish_var_dump(const clish_var_t *instance);
- int clish_var_compare(const void *first, const void *second);
- int clish_var_fn_find_by_name(const void *key, const void *data);
- _CLISH_GET_STR(var, name);
- _CLISH_SET(var, bool_t, dynamic);
- _CLISH_GET(var, bool_t, dynamic);
- _CLISH_SET_STR(var, value);
- _CLISH_GET_STR(var, value);
- _CLISH_SET_STR(var, saved);
- _CLISH_GET_STR(var, saved);
- _CLISH_GET(var, clish_action_t *, action);
- #endif /* _clish_var_h */
|