summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-03-30 20:35:16 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-03-30 20:35:16 +0200
commit467f482ea6653127d49ea7b6c487f9d51929d232 (patch)
treeb32bdd6776078c84adf5ac5bf193d649e26ba7c0 /doc/en
parent0436fff31b5ef7814391dd1a666cccfaa0f2ff67 (diff)
downloadweechat-467f482ea6653127d49ea7b6c487f9d51929d232.zip
core: make "callback_cmp" optional in call to function arraylist_new()
If no callback is given, a default callback is used, which just compares pointers.
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 08978f590..d4e1e9630 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -3875,7 +3875,8 @@ Arguments:
* _sorted_: 1 to sort the array list, 0 for no sort
* _allow_duplicates_: 1 to allow duplicate entries, 0 to prevent a same entry
to be added again
-* _callback_cmp_: callback used to compare two items, arguments and return value:
+* _callback_cmp_: callback used to compare two items (optional), arguments and
+ return value:
** _void *data_: pointer
** _struct t_arraylist *arraylist_: array list pointer
** _void *pointer1_: pointer to first item