diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-27 22:26:31 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-05-27 22:26:31 +0200 |
commit | b56843de87f69646435aa097ba5a6a794b2d9007 (patch) | |
tree | 22849e3dd6278b029fc323377936fa0d6dee0975 /doc/en | |
parent | c4832737e94c6401e6df3c0af912f51c910599ae (diff) | |
download | weechat-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.adoc | 5 |
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: |