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/ja | |
parent | 5210ff1ae9f0b8a56541aba94136d2806548e819 (diff) | |
download | weechat-bd0d8d5a1c6a2e688729ffe378f7871c27406055.zip |
doc: add missing pointer in examples (plugin API reference)
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.asciidoc | 44 |
1 files changed, 29 insertions, 15 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index 9e5907066..36b26141b 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -180,8 +180,9 @@ struct t_weechat_plugin *weechat_plugin = NULL; /* "/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) { /* C 言語コンパイラ向けに必要 */ (void) data; @@ -4491,8 +4492,10 @@ C 言語での使用例: [source,C] ---- int -my_section_read_cb (void *data, struct t_config_file *config_file, - struct t_config_section *section, const char *option_name, +my_section_read_cb (const void *pointer, void *data, + struct t_config_file *config_file, + struct t_config_section *section, + const char *option_name, const char *value) { /* ... */ @@ -4503,7 +4506,8 @@ my_section_read_cb (void *data, struct t_config_file *config_file, } 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) { /* ... */ @@ -4514,7 +4518,8 @@ my_section_write_cb (void *data, struct t_config_file *config_file, } int -my_section_write_default_cb (void *data, struct t_config_file *config_file, +my_section_write_default_cb (const void *pointer, void *data, + struct t_config_file *config_file, const char *section_name) { /* ... */ @@ -4525,9 +4530,11 @@ my_section_write_default_cb (void *data, struct t_config_file *config_file, } int -my_section_create_option_cb (void *data, struct t_config_file *config_file, +my_section_create_option_cb (const void *pointer, void *data, + struct t_config_file *config_file, struct t_config_section *section, - const char *option_name, const char *value) + const char *option_name, + const char *value) { /* ... */ @@ -4538,7 +4545,8 @@ my_section_create_option_cb (void *data, struct t_config_file *config_file, } int -my_section_delete_option_cb (void *data, struct t_config_file *config_file, +my_section_delete_option_cb (const void *pointer, void *data, + struct t_config_file *config_file, struct t_config_section *section, struct t_config_option *option) { @@ -5851,7 +5859,8 @@ C 言語での使用例: [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 +5911,8 @@ C 言語での使用例: [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); @@ -11337,11 +11347,15 @@ void weechat_buffer_set_pointer (struct t_gui_buffer *buffer, const char *proper [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 言語での使用例: @@ -11349,7 +11363,7 @@ C 言語での使用例: [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; |