diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-24 18:03:14 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-05-24 18:03:14 +0200 |
commit | 7aaf3be15bdb3ff2bd9815cc35bd1699c20ce7a6 (patch) | |
tree | db50043debf82a51dbab4c73f27342dec36d2fee /src/core/wee-hdata.h | |
parent | 3092c09bc96438afb005c6ce11b07309a945ebc7 (diff) | |
download | weechat-7aaf3be15bdb3ff2bd9815cc35bd1699c20ce7a6.zip |
api: add argument "flags" in function hdata_new_list
Diffstat (limited to 'src/core/wee-hdata.h')
-rw-r--r-- | src/core/wee-hdata.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/core/wee-hdata.h b/src/core/wee-hdata.h index abbd505e9..68523f8d4 100644 --- a/src/core/wee-hdata.h +++ b/src/core/wee-hdata.h @@ -25,7 +25,8 @@ hdata_new_var (hdata, #__name, offsetof (__struct, __name), \ WEECHAT_HDATA_##__type, __update_allowed, \ __array_size, __hdata_name) -#define HDATA_LIST(__name) hdata_new_list (hdata, #__name, &(__name)); +#define HDATA_LIST(__name, __flags) \ + hdata_new_list (hdata, #__name, &(__name), __flags); struct t_hdata_var { @@ -36,6 +37,12 @@ struct t_hdata_var char *hdata_name; /* hdata name */ }; +struct t_hdata_list +{ + void *pointer; /* list pointer */ + int flags; /* flags for list */ +}; + struct t_hdata { char *name; /* name of hdata */ @@ -79,7 +86,7 @@ extern void hdata_new_var (struct t_hdata *hdata, const char *name, int offset, int type, int update_allowed, const char *array_size, const char *hdata_name); extern void hdata_new_list (struct t_hdata *hdata, const char *name, - void *pointer); + void *pointer, int flags); extern int hdata_get_var_offset (struct t_hdata *hdata, const char *name); extern int hdata_get_var_type (struct t_hdata *hdata, const char *name); extern const char *hdata_get_var_type_string (struct t_hdata *hdata, |