summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-05-27 22:26:31 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-05-27 22:26:31 +0200
commitb56843de87f69646435aa097ba5a6a794b2d9007 (patch)
tree22849e3dd6278b029fc323377936fa0d6dee0975 /doc/en
parentc4832737e94c6401e6df3c0af912f51c910599ae (diff)
downloadweechat-b56843de87f69646435aa097ba5a6a794b2d9007.zip
doc: mention callback argument "callback_pointer" in differences with C API (scripting guide)
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_scripting.en.adoc5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc
index 414372352..2c9bbd330 100644
--- a/doc/en/weechat_scripting.en.adoc
+++ b/doc/en/weechat_scripting.en.adoc
@@ -400,8 +400,9 @@ otherwise you may see a nice crash report ;)
Almost all WeeChat callbacks must return WEECHAT_RC_OK or WEECHAT_RC_ERROR
(exception is modifier callback, which returns a string).
-C callbacks are using a "data" argument, which is a pointer. In script API,
-this "data" is a string with a any value (it's not a pointer).
+C callbacks are using "callback_pointer" and "callback_data" arguments, which
+are pointers. In script API, there is only "callback_data" (or "data"), and it
+is a string instead of a pointer.
Example of callback, for each language: