summaryrefslogtreecommitdiff
path: root/doc/ja/weechat_plugin_api.ja.asciidoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-03-25 14:18:51 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-03-25 14:18:51 +0100
commit498662c777ff7fac5a0a137132735953bc5808d9 (patch)
treeecd40e3cba049bd64a413af1f391a22c024ee692 /doc/ja/weechat_plugin_api.ja.asciidoc
parent0b697629d526cd1e6502d5b19d572926fb3da178 (diff)
downloadweechat-498662c777ff7fac5a0a137132735953bc5808d9.zip
doc: add pointer in hook callback examples (plugin API reference)
Diffstat (limited to 'doc/ja/weechat_plugin_api.ja.asciidoc')
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc61
1 files changed, 33 insertions, 28 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc
index 98b38f94a..12b45301a 100644
--- a/doc/ja/weechat_plugin_api.ja.asciidoc
+++ b/doc/ja/weechat_plugin_api.ja.asciidoc
@@ -7079,8 +7079,8 @@ C 言語での使用例:
[source,C]
----
int
-my_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
- char **argv, char **argv_eol)
+my_command_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
+ int argc, char **argv, char **argv_eol)
{
/* ... */
return WEECHAT_RC_OK;
@@ -7200,7 +7200,7 @@ C 言語での使用例:
[source,C]
----
int
-my_command_run_cb (void *data, struct t_gui_buffer *buffer,
+my_command_run_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
const char *command)
{
weechat_printf (NULL, "I'm eating the completion!");
@@ -7273,7 +7273,7 @@ C 言語での使用例:
[source,C]
----
int
-my_timer_cb (void *data, int remaining_calls)
+my_timer_cb (const void *pointer, void *data, int remaining_calls)
{
/* ... */
return WEECHAT_RC_OK;
@@ -7350,7 +7350,7 @@ C 言語での使用例:
[source,C]
----
int
-my_fd_cb (void *data, int fd)
+my_fd_cb (const void *pointer, void *data, int fd)
{
/* ... */
return WEECHAT_RC_OK;
@@ -7469,8 +7469,8 @@ C 言語での使用例:
[source,C]
----
int
-my_process_cb (void *data, const char *command, int return_code,
- const char *out, const char *err)
+my_process_cb (const void *pointer, void *data, const char *command,
+ int return_code, const char *out, const char *err)
{
if (return_code == WEECHAT_HOOK_PROCESS_ERROR)
{
@@ -7609,8 +7609,8 @@ C 言語での使用例:
[source,C]
----
int
-my_process_cb (void *data, const char *command, int return_code,
- const char *out, const char *err)
+my_process_cb (const void *pointer, void *data, const char *command,
+ int return_code, const char *out, const char *err)
{
if (return_code == WEECHAT_HOOK_PROCESS_ERROR)
{
@@ -7817,8 +7817,8 @@ C 言語での使用例:
[source,C]
----
int
-my_connect_cb (void *data, int status, int gnutls_rc, int sock,
- const char *error, const char *ip_address)
+my_connect_cb (const void *pointer, void *data, int status, int gnutls_rc,
+ int sock, const char *error, const char *ip_address)
{
switch (status)
{
@@ -7981,8 +7981,8 @@ C 言語での使用例:
[source,C]
----
int
-my_print_cb (void *data, struct t_gui_buffer *buffer, time_t date,
- int tags_count, const char **tags,
+my_print_cb (const void *pointer, void *data, struct t_gui_buffer *buffer,
+ time_t date, int tags_count, const char **tags,
int displayed, int highlight,
const char *prefix, const char *message)
{
@@ -8704,8 +8704,8 @@ C 言語での使用例:
[source,C]
----
int
-my_signal_cb (void *data, const char *signal, const char *type_data,
- void *signal_data)
+my_signal_cb (const void *pointer, void *data, const char *signal,
+ const char *type_data, void *signal_data)
{
/* ... */
return WEECHAT_RC_OK;
@@ -9037,7 +9037,8 @@ C 言語での使用例:
[source,C]
----
int
-my_hsignal_cb (void *data, const char *signal, struct t_hashtable *hashtable)
+my_hsignal_cb (const void *pointer, void *data, const char *signal,
+ struct t_hashtable *hashtable)
{
/* ... */
return WEECHAT_RC_OK;
@@ -9178,7 +9179,8 @@ C 言語での使用例:
[source,C]
----
int
-test_whois_cb (void *data, const char *signal, struct t_hashtable *hashtable)
+test_whois_cb (const void *pointer, void *data, const char *signal,
+ struct t_hashtable *hashtable)
{
weechat_printf (NULL, "error = %s", weechat_hashtable_get (hashtable, "error"));
weechat_printf (NULL, "output = %s", weechat_hashtable_get (hashtable, "output"));
@@ -9338,7 +9340,8 @@ C 言語での使用例:
[source,C]
----
int
-my_config_cb (void *data, const char *option, const char *value)
+my_config_cb (const void *pointer, void *data, const char *option,
+ const char *value)
{
/* ... */
return WEECHAT_RC_OK;
@@ -9430,7 +9433,7 @@ C 言語での使用例:
[source,C]
----
int
-my_completion_cb (void *data, const char *completion_item,
+my_completion_cb (const void *pointer, void *data, const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
@@ -9490,7 +9493,7 @@ C 言語での使用例:
[source,C]
----
int
-my_completion_cb (void *data, const char *completion_item,
+my_completion_cb (const void *pointer, void *data, const char *completion_item,
struct t_gui_buffer *buffer,
struct t_gui_completion *completion)
{
@@ -9714,7 +9717,7 @@ C 言語での使用例:
[source,C]
----
char *
-my_modifier_cb (void *data, const char *modifier,
+my_modifier_cb (const void *pointer, void *data, const char *modifier,
const char *modifier_data,
const char *string)
{
@@ -9840,7 +9843,8 @@ C 言語での使用例:
[source,C]
----
const char *
-my_info_cb (void *data, const char *info_name, const char *arguments)
+my_info_cb (const void *pointer, void *data, const char *info_name,
+ const char *arguments)
{
/* ... */
return pointer_to_string;
@@ -9918,7 +9922,8 @@ C 言語での使用例:
[source,C]
----
struct t_hashtable *
-my_info_hashtable_cb (void *data, const char *info_name, struct t_hashtable *hashtable)
+my_info_hashtable_cb (const void *pointer, void *data, const char *info_name,
+ struct t_hashtable *hashtable)
{
/* ... */
return pointer_to_new_hashtable;
@@ -9965,7 +9970,7 @@ struct t_hook *weechat_hook_infolist (const char *infolist_name,
struct t_infolist *(*callback)(const void *pointer,
void *data,
const char *infolist_name,
- void *pointer,
+ void *obj_pointer,
const char *arguments),
void *callback_data);
----
@@ -10001,8 +10006,8 @@ C 言語での使用例:
[source,C]
----
struct t_infolist *
-my_infolist_cb (void *data, const char *infolist_name, void *pointer,
- const char *arguments)
+my_infolist_cb (const void *pointer, void *data, const char *infolist_name,
+ void *obj_pointer, const char *arguments)
{
struct t_infolist *my_infolist;
@@ -10081,7 +10086,7 @@ C 言語での使用例:
[source,C]
----
struct t_hdata *
-my_hdata_cb (void *data, const char *hdata_name)
+my_hdata_cb (const void *pointer, void *data, const char *hdata_name)
{
struct t_hdata *my_hdata;
@@ -10275,7 +10280,7 @@ C 言語での使用例:
[source,C]
----
struct t_hashtable *
-my_focus_nicklist_cb (void *data, struct t_hashtable *info)
+my_focus_nicklist_cb (const void *pointer, void *data, struct t_hashtable *info)
{
/* add strings in hashtable */
/* ... */