diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-06-26 18:15:42 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-06-26 18:15:42 +0200 |
commit | 19bc95b96189de5a645adbe7b3487d5de1b835e7 (patch) | |
tree | b68d3d98d3d643bc02fba218db7f7ed6cd07ea2c /src/core/wee-infolist.h | |
parent | 2a630031fd3c868733e3038c3e19ad4b53a8d8ce (diff) | |
download | weechat-19bc95b96189de5a645adbe7b3487d5de1b835e7.zip |
core: many improvements on hdata
New features:
- add optional hdata name for variables in hdata
- add plugin API functions: hdata_get_var_hdata
- use hashtable to store hdata (created by WeeChat and plugins)
- free hdata and infolists created by plugin on plugin unload
- free all hdata on exit
- add "free" option to command /debug hdata
- remove hdata for hooks
Diffstat (limited to 'src/core/wee-infolist.h')
-rw-r--r-- | src/core/wee-infolist.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-infolist.h b/src/core/wee-infolist.h index 4571230d8..cf97ce751 100644 --- a/src/core/wee-infolist.h +++ b/src/core/wee-infolist.h @@ -52,6 +52,8 @@ struct t_infolist_item struct t_infolist { + struct t_weechat_plugin *plugin; /* plugin which created this infolist*/ + /* (NULL if created by WeeChat) */ struct t_infolist_item *items; /* link to items */ struct t_infolist_item *last_item; /* last variable */ struct t_infolist_item *ptr_item; /* pointer to current item */ @@ -100,6 +102,7 @@ extern void *infolist_buffer (struct t_infolist *infolist, extern time_t infolist_time (struct t_infolist *infolist, const char *var); extern void infolist_free (struct t_infolist *infolist); +extern void infolist_free_all_plugin (struct t_weechat_plugin *plugin); extern void infolist_print_log (); #endif /* __WEECHAT_INFOLIST_H */ |