diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index b229fd072..1fec6f25c 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -7318,8 +7318,8 @@ C example: [source,C] ---------------------------------------- int -my_connect_cb (void *data, int status, int gnutls_rc, const char *error, - const char *ip_address) +my_connect_cb (void *data, int status, int gnutls_rc, int sock, + const char *error, const char *ip_address) { switch (status) { @@ -7362,7 +7362,7 @@ my_connect_cb (void *data, int status, int gnutls_rc, const char *error, struct t_hook *my_connect_hook = weechat_hook_connect (NULL, "my.server.org", 1234, - sock, 0, + 1, 0, NULL, NULL, 0, /* GnuTLS */ NULL, &my_connect_cb, NULL); @@ -7373,11 +7373,11 @@ Script (Python): [source,python] ---------------------------------------- # prototype -hook = weechat.hook_connect(proxy, address, port, sock, ipv6, local_hostname, +hook = weechat.hook_connect(proxy, address, port, ipv6, retry, local_hostname, callback, callback_data) # example -def my_connect_cb(data, status, gnutls_rc, error, ip_address): +def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address): if status == WEECHAT_HOOK_CONNECT_OK: # ... elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: @@ -7402,7 +7402,7 @@ def my_connect_cb(data, status, gnutls_rc, error, ip_address): # ... return weechat.WEECHAT_RC_OK -hook = weechat.hook_connect("", "my.server.org", 1234, sock, 0, "", +hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ---------------------------------------- diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index 93a52ed18..8d7e1be03 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -7429,8 +7429,8 @@ Exemple en C : [source,C] ---------------------------------------- int -my_connect_cb (void *data, int status, int gnutls_rc, const char *error, - const char *ip_address) +my_connect_cb (void *data, int status, int gnutls_rc, int sock, + const char *error, const char *ip_address) { switch (status) { @@ -7473,7 +7473,7 @@ my_connect_cb (void *data, int status, int gnutls_rc, const char *error, struct t_hook *my_connect_hook = weechat_hook_connect (NULL, "my.server.org", 1234, - sock, 0, + 1, 0, NULL, NULL, 0, /* GnuTLS */ NULL, &my_connect_cb, NULL); @@ -7484,11 +7484,11 @@ Script (Python) : [source,python] ---------------------------------------- # prototype -hook = weechat.hook_connect(proxy, address, port, sock, ipv6, local_hostname, +hook = weechat.hook_connect(proxy, address, port, ipv6, retry, local_hostname, callback, callback_data) # exemple -def my_connect_cb(data, status, gnutls_rc, error, ip_address): +def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address): if status == WEECHAT_HOOK_CONNECT_OK: # ... elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: @@ -7513,7 +7513,7 @@ def my_connect_cb(data, status, gnutls_rc, error, ip_address): # ... return weechat.WEECHAT_RC_OK -hook = weechat.hook_connect("", "my.server.org", 1234, sock, 0, "", +hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ---------------------------------------- diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index 2f42f8798..d028a0ade 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -7360,8 +7360,8 @@ Esempio in C: [source,C] ---------------------------------------- int -my_connect_cb (void *data, int status, int gnutls_rc, const char *error, - const char *ip_address) +my_connect_cb (void *data, int status, int gnutls_rc, int sock, + const char *error, const char *ip_address) { switch (status) { @@ -7404,7 +7404,7 @@ my_connect_cb (void *data, int status, int gnutls_rc, const char *error, struct t_hook *my_connect_hook = weechat_hook_connect (NULL, "my.server.org", 1234, - sock, 0, + 1, 0, NULL, NULL, 0, /* GnuTLS */ NULL, &my_connect_cb, NULL); @@ -7415,11 +7415,11 @@ Script (Python): [source,python] ---------------------------------------- # prototipo -hook = weechat.hook_connect(proxy, address, port, sock, ipv6, local_hostname, +hook = weechat.hook_connect(proxy, address, port, ipv6, retry, local_hostname, callback, callback_data) # esempio -def my_connect_cb(data, status, gnutls_rc, error, ip_address): +def my_connect_cb(data, status, gnutls_rc, sock, error, ip_address): if status == WEECHAT_HOOK_CONNECT_OK: # ... elif status == WEECHAT_HOOK_CONNECT_ADDRESS_NOT_FOUND: @@ -7444,7 +7444,7 @@ def my_connect_cb(data, status, gnutls_rc, error, ip_address): # ... return weechat.WEECHAT_RC_OK -hook = weechat.hook_connect("", "my.server.org", 1234, sock, 0, "", +hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ----------------------------------------