diff options
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/autogen/plugin_api/hdata.txt | 6 | ||||
-rw-r--r-- | doc/en/weechat_plugin_api.en.txt | 16 |
2 files changed, 14 insertions, 8 deletions
diff --git a/doc/en/autogen/plugin_api/hdata.txt b/doc/en/autogen/plugin_api/hdata.txt index 464880912..9f161265b 100644 --- a/doc/en/autogen/plugin_api/hdata.txt +++ b/doc/en/autogen/plugin_api/hdata.txt @@ -561,8 +561,10 @@ 'text' (string) + 'next_history' (pointer, hdata: "history") + 'prev_history' (pointer, hdata: "history") | - | - - + `__create` + + `__delete` | + 'gui_history' + + 'last_gui_history' | weechat | hotlist | hotlist | 'priority' (integer) + diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index 5c0bc297e..4b0a663e1 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -12912,7 +12912,7 @@ something in memory pointed by hdata variables. weechat_hdata_new ^^^^^^^^^^^^^^^^^ -_New in version 0.3.6, updated in 0.3.9._ +_New in version 0.3.6, updated in 0.3.9 and 0.4.0._ Create a new hdata. @@ -12932,7 +12932,7 @@ Prototype: [source,C] ---------------------------------------- struct t_hdata *weechat_hdata_new (const char *hdata_name, const char *var_prev, const char *var_next, - int delete_allowed, + int create_allowed, int delete_allowed, int (*callback_update)(void *data, struct t_hdata *hdata, void *pointer, @@ -12947,6 +12947,8 @@ Arguments: element in list (may be NULL if no such variable is available) * 'var_next': name of variable in structure which is a pointer to next element in list (may be NULL if no such variable is available) +* 'create_allowed': 1 if create of structure is allowed, otherwise 0 + (_new in version 0.4.0_) * 'delete_allowed': 1 if delete of structure is allowed, otherwise 0 (_new in version 0.3.9_) * 'callback_update': callback to update data in hdata, can be NULL if no update @@ -12967,7 +12969,7 @@ C example: [source,C] ---------------------------------------- -struct t_hdata *hdata = weechat_hdata_new ("myplugin_list", "prev", "next", 0, &callback_update, NULL); +struct t_hdata *hdata = weechat_hdata_new ("myplugin_list", "prev", "next", 0, 0, &callback_update, NULL); ---------------------------------------- [NOTE] @@ -14079,11 +14081,13 @@ Arguments: * 'hashtable': variables to update: keys are name of variables, values are new values for variables (keys and values are string), some special keys are allowed: -** key '__delete_allowed' (with any value): return 1 if delete is allowed for +** key `__create_allowed` (with any value): return 1 if create is allowed for + structure, otherwise 0 (_new in version 0.4.0_) +** key `__delete_allowed` (with any value): return 1 if delete is allowed for structure, otherwise 0 -** key '__update_allowed', value is name of a variable: return 1 if update is +** key `__update_allowed`, value is name of a variable: return 1 if update is allowed for this variable, otherwise 0 -** key '__delete' (with any value): delete structure (if allowed) +** key `__delete` (with any value): delete structure (if allowed) Return value: |