summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-12-27 08:09:48 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-12-27 08:09:48 +0100
commit295158d3e1cd148315d5c383da5980c3e1157396 (patch)
treefa43f9fdc04137f13ebb8b0b3ca67393b213d78c
parent39e03d4594acff6a51c33f342d4fdff8f32e69ed (diff)
downloadweechat-295158d3e1cd148315d5c383da5980c3e1157396.zip
doc: fix example for function hdata_search (plugin API reference)
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc2
-rw-r--r--doc/fr/weechat_plugin_api.fr.asciidoc2
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc2
-rw-r--r--doc/ja/weechat_plugin_api.ja.asciidoc2
4 files changed, 4 insertions, 4 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index 7366e4cab..ffc2130ef 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -14633,7 +14633,7 @@ C example:
[source,C]
----
struct t_hdata *hdata = weechat_hdata_get ("irc_server");
-void *servers = weechat_hdata_get (hdata, "irc_servers");
+void *servers = weechat_hdata_get_list (hdata, "irc_servers");
/* search irc server with name "freenode" */
void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == freenode", 1);
diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc
index eb2f3a1e2..c26284236 100644
--- a/doc/fr/weechat_plugin_api.fr.asciidoc
+++ b/doc/fr/weechat_plugin_api.fr.asciidoc
@@ -14916,7 +14916,7 @@ Exemple en C :
[source,C]
----
struct t_hdata *hdata = weechat_hdata_get ("irc_server");
-void *servers = weechat_hdata_get (hdata, "irc_servers");
+void *servers = weechat_hdata_get_list (hdata, "irc_servers");
/* cherche un serveur irc avec le nom "freenode" */
void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == freenode", 1);
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index 6806063dc..bf719f606 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -15104,7 +15104,7 @@ Esempio in C:
[source,C]
----
struct t_hdata *hdata = weechat_hdata_get ("irc_server");
-void *servers = weechat_hdata_get (hdata, "irc_servers");
+void *servers = weechat_hdata_get_list (hdata, "irc_servers");
/* search irc server with name "freenode" */
void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == freenode", 1);
diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc
index d57069c2a..013922aec 100644
--- a/doc/ja/weechat_plugin_api.ja.asciidoc
+++ b/doc/ja/weechat_plugin_api.ja.asciidoc
@@ -14629,7 +14629,7 @@ C 言語での使用例:
[source,C]
----
struct t_hdata *hdata = weechat_hdata_get ("irc_server");
-void *servers = weechat_hdata_get (hdata, "irc_servers");
+void *servers = weechat_hdata_get_list (hdata, "irc_servers");
/* search irc server with name "freenode" */
void *server = weechat_hdata_search (hdata, servers, "${irc_server.name} == freenode", 1);