summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc63
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc62
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc61
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc61
4 files changed, 134 insertions, 113 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index a87538b32..e6b5bc692 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -7080,8 +7080,8 @@ C example:
[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,8 +7200,8 @@ C example:
[source,C]
----
int
-my_command_run_cb (void *data, struct t_gui_buffer *buffer,
- const char *command)
+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!");
return WEECHAT_RC_OK_EAT;
@@ -7272,7 +7272,7 @@ C example:
[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;
@@ -7348,7 +7348,7 @@ C example:
[source,C]
----
int
-my_fd_cb (void *data, int fd)
+my_fd_cb (const void *pointer, void *data, int fd)
{
/* ... */
return WEECHAT_RC_OK;
@@ -7466,8 +7466,8 @@ C example:
[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)
{
@@ -7606,8 +7606,8 @@ C example:
[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)
{
@@ -7813,8 +7813,8 @@ C example:
[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)
{
@@ -7976,8 +7976,8 @@ C example:
[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)
{
@@ -8698,8 +8698,8 @@ C example:
[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;
@@ -9030,7 +9030,8 @@ C example:
[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;
@@ -9171,7 +9172,8 @@ C example:
[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"));
@@ -9330,7 +9332,8 @@ C example:
[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;
@@ -9421,7 +9424,7 @@ C example:
[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)
{
@@ -9481,7 +9484,7 @@ C example:
[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)
{
@@ -9706,7 +9709,7 @@ C example:
[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)
{
@@ -9831,7 +9834,8 @@ C example:
[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;
@@ -9908,7 +9912,8 @@ C example:
[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;
@@ -9955,7 +9960,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);
----
@@ -9990,8 +9995,8 @@ C example:
[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;
@@ -10069,7 +10074,7 @@ C example:
[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;
@@ -10262,7 +10267,7 @@ C example:
[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 */
/* ... */
diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc
index 5e880d77e..3b493f309 100644
--- a/doc/fr/weechat_plugin_api.fr.asciidoc
+++ b/doc/fr/weechat_plugin_api.fr.asciidoc
@@ -7199,8 +7199,8 @@ Exemple en 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;
@@ -7322,7 +7322,8 @@ Exemple en C :
[source,C]
----
int
-my_command_run_cb (void *data, struct t_gui_buffer *buffer, const char *command)
+my_command_run_cb (const void *pointer, void *data,
+ struct t_gui_buffer *buffer, const char *command)
{
weechat_printf (NULL, "Je mange la complétion !");
return WEECHAT_RC_OK_EAT;
@@ -7399,7 +7400,7 @@ Exemple en 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;
@@ -7477,7 +7478,7 @@ Exemple en 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;
@@ -7603,8 +7604,8 @@ Exemple en 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)
{
@@ -7748,8 +7749,8 @@ Exemple en 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)
{
@@ -7961,8 +7962,8 @@ Exemple en 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)
{
@@ -8129,8 +8130,8 @@ Exemple en 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)
{
@@ -8857,8 +8858,8 @@ Exemple en 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;
@@ -9197,7 +9198,8 @@ Exemple en 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;
@@ -9343,7 +9345,8 @@ Exemple en 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, "erreur = %s", weechat_hashtable_get (hashtable, "error"));
weechat_printf (NULL, "sortie = %s", weechat_hashtable_get (hashtable, "output"));
@@ -9510,7 +9513,8 @@ Exemple en 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;
@@ -9605,7 +9609,7 @@ Exemple en 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)
{
@@ -9665,7 +9669,7 @@ Exemple en 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)
{
@@ -9902,7 +9906,7 @@ Exemple en 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)
{
@@ -10031,7 +10035,8 @@ Exemple en 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 pointeur_vers_chaine;
@@ -10115,7 +10120,8 @@ Exemple en 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_vers_nouvelle_table_de_hachage;
@@ -10163,7 +10169,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);
----
@@ -10200,8 +10206,8 @@ Exemple en 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 *mon_infolist;
@@ -10281,7 +10287,7 @@ Exemple en 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 *mon_hdata;
@@ -10480,7 +10486,7 @@ Exemple en 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)
{
/* ajout de chaînes dans la table de hachage */
/* ... */
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index f0b36b85f..e3144664d 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -7241,8 +7241,8 @@ Esempio in 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;
@@ -7367,7 +7367,7 @@ Esempio in 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, "Sto mangiando il completamento!");
@@ -7444,7 +7444,7 @@ Esempio in 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;
@@ -7523,7 +7523,7 @@ Esempio in 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;
@@ -7647,8 +7647,8 @@ Esempio in 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)
{
@@ -7795,8 +7795,8 @@ Esempio in 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)
{
@@ -8007,8 +8007,8 @@ Esempio in 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)
{
@@ -8177,8 +8177,8 @@ Esempio in 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)
{
@@ -8977,8 +8977,8 @@ Esempio in 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;
@@ -9331,7 +9331,8 @@ Esempio in 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;
@@ -9477,7 +9478,8 @@ Esempio in 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"));
@@ -9640,7 +9642,8 @@ Esempio in 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;
@@ -9734,7 +9737,7 @@ Esempio in 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)
{
@@ -9794,7 +9797,7 @@ Esempio in 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)
{
@@ -10028,7 +10031,7 @@ Esempio in 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)
{
@@ -10156,7 +10159,8 @@ Esempio in 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;
@@ -10237,7 +10241,8 @@ Esempio in 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;
@@ -10285,7 +10290,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);
----
@@ -10322,8 +10327,8 @@ Esempio in 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;
@@ -10401,7 +10406,7 @@ Esempio in 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;
@@ -10597,7 +10602,7 @@ Esempio in 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 */
/* ... */
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 */
/* ... */