diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-03-28 13:13:28 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-03-28 13:13:28 +0200 |
commit | bd0d8d5a1c6a2e688729ffe378f7871c27406055 (patch) | |
tree | d379da63b777a8dcb599779ef44634a572c9ec78 /doc/en | |
parent | 5210ff1ae9f0b8a56541aba94136d2806548e819 (diff) | |
download | weechat-bd0d8d5a1c6a2e688729ffe378f7871c27406055.zip |
doc: add missing pointer in examples (plugin API reference)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.asciidoc | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index 70f636f6f..bb12f4d73 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -175,8 +175,9 @@ struct t_weechat_plugin *weechat_plugin = NULL; /* callback for command "/double" */ int -command_double_cb (void *data, struct t_gui_buffer *buffer, int argc, - char **argv, char **argv_eol) +command_double_cb (const void *pointer, void *data, + struct t_gui_buffer *buffer, + int argc, char **argv, char **argv_eol) { /* make C compiler happy */ (void) data; @@ -5851,7 +5852,8 @@ C example: [source,C] ---- int -my_section_write_cb (void *data, struct t_config_file *config_file, +my_section_write_cb (const void *pointer, void *data, + struct t_config_file *config_file, const char *section_name) { weechat_config_write_line (config_file, "my_section", NULL); @@ -5902,7 +5904,8 @@ C example: [source,C] ---- int -my_section_write_cb (void *data, struct t_config_file *config_file, +my_section_write_cb (const void *pointer, void *data, + struct t_config_file *config_file, const char *section_name) { weechat_config_write_line (config_file, "my_section", NULL); @@ -11324,11 +11327,15 @@ Prototypes for callbacks: [source,C] ---- -int close_callback (void *data, struct t_gui_buffer *buffer); +int close_callback (const void *pointer, void *data, + struct t_gui_buffer *buffer); -int input_callback (void *data, struct t_gui_buffer *buffer, const char *input_data); +int input_callback (const void *pointer, void *data, + struct t_gui_buffer *buffer, const char *input_data); -int nickcmp_callback (void *data, struct t_gui_buffer *buffer, const char *nick1, const char *nick2); +int nickcmp_callback (const void *pointer, void *data, + struct t_gui_buffer *buffer, + const char *nick1, const char *nick2); ---- C example: @@ -11336,7 +11343,7 @@ C example: [source,C] ---- int -my_close_cb (void *data, struct t_gui_buffer *buffer) +my_close_cb (const void *pointer, void *data, struct t_gui_buffer *buffer) { /* ... */ return WEECHAT_RC_OK; |