summaryrefslogtreecommitdiff
path: root/doc/fr
diff options
context:
space:
mode:
Diffstat (limited to 'doc/fr')
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc62
1 files changed, 34 insertions, 28 deletions
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 */
/* ... */