From bd0d8d5a1c6a2e688729ffe378f7871c27406055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 28 Mar 2016 13:13:28 +0200 Subject: doc: add missing pointer in examples (plugin API reference) --- doc/ja/weechat_plugin_api.ja.asciidoc | 44 +++++++++++++++++++++++------------ 1 file changed, 29 insertions(+), 15 deletions(-) (limited to 'doc/ja') 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; -- cgit v1.2.3