mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:25:41 +02:00
api: use pointer for infolist "hook" to return only one hook
This commit is contained in:
@@ -46,6 +46,7 @@ Version 0.4.2 (under dev!)
|
||||
"layout_window"
|
||||
* core: fix line alignment when option weechat.look.buffer_time_format is set
|
||||
to empty string
|
||||
* api: use pointer for infolist "hook" to return only one hook
|
||||
* api: add new function strlen_screen
|
||||
* aspell: rename option aspell.look.color to aspell.color.misspelled, add option
|
||||
aspell.color.suggestions
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
| weechat | history | Verlaufspeicher der Befehle | Buffer Pointer (falls nicht gesetzt, wird der globale Verlauf zurückgegeben) (optional) | -
|
||||
|
||||
| weechat | hook | Auflistung der Hooks | - | type,arguments (type ist ein command/timer/.., arguments dient dazu nur einige hooks abzufragen (darf mit einem "*" als Platzhalter beginnen oder enden), beide Optionen sind optional)
|
||||
| weechat | hook | Auflistung der Hooks | hook pointer (optional) | type,arguments (type ist ein command/timer/.., arguments dient dazu nur einige hooks abzufragen (darf mit einem "*" als Platzhalter beginnen oder enden), beide Optionen sind optional)
|
||||
|
||||
| weechat | hotlist | Liste der Buffer in Hotlist | - | -
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
| weechat | history | history of commands | buffer pointer (if not set, return global history) (optional) | -
|
||||
|
||||
| weechat | hook | list of hooks | - | type,arguments (type is command/timer/.., arguments to get only some hooks (can start or end with "*" as wildcard), both are optional)
|
||||
| weechat | hook | list of hooks | hook pointer (optional) | type,arguments (type is command/timer/.., arguments to get only some hooks (can start or end with "*" as wildcard), both are optional)
|
||||
|
||||
| weechat | hotlist | list of buffers in hotlist | - | -
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
| weechat | history | historique des commandes | pointeur vers le tampon (si non défini, retourne l'historique global) (optionnel) | -
|
||||
|
||||
| weechat | hook | liste des hooks | - | type,paramètres (le type est command/timer/.., paramètres pour avoir seulement quelques hooks (peut démarrer ou se terminer par "*" comme joker), les deux sont optionnels)
|
||||
| weechat | hook | liste des hooks | pointeur vers le hook (optionnel) | type,paramètres (le type est command/timer/.., paramètres pour avoir seulement quelques hooks (peut démarrer ou se terminer par "*" comme joker), les deux sont optionnels)
|
||||
|
||||
| weechat | hotlist | liste des tampons dans la hotlist | - | -
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
| weechat | history | cronologia dei comandi | puntatore al buffer (se non impostato, restituisce la cronologia globale) (opzionale) | -
|
||||
|
||||
| weechat | hook | elenco di hook | - | tipo,argomenti (il tipo è comando/timer/.., gli argomenti sono necessari solo per ottenere alcuni hook, (possono iniziare o terminare con "*" come carattere jolly, entrambi sono opzionali)
|
||||
| weechat | hook | elenco di hook | hook pointer (optional) | tipo,argomenti (il tipo è comando/timer/.., gli argomenti sono necessari solo per ottenere alcuni hook, (possono iniziare o terminare con "*" come carattere jolly, entrambi sono opzionali)
|
||||
|
||||
| weechat | hotlist | elenco dei buffer nella hotlist | - | -
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
| weechat | history | コマンドの履歴 | バッファポインタ (ワイルドカードとして "*" で始めるか終われる) (オプション) | -
|
||||
|
||||
| weechat | hook | フックリスト | - | type,arguments (type はコマンド/タイマー/..、arguments はいくつかのフックで必要 (ワイルドカードとして "*" で始めるか終われる)、両方ともオプション)
|
||||
| weechat | hook | フックリスト | hook pointer (optional) | type,arguments (type はコマンド/タイマー/..、arguments はいくつかのフックで必要 (ワイルドカードとして "*" で始めるか終われる)、両方ともオプション)
|
||||
|
||||
| weechat | hotlist | ホットリストに含まれるバッファ | - | -
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7606,6 +7606,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "seznam napojení"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "ukazatel přezdívky (volitelné)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
|
||||
"Language-Team: German <weechatter@arcor.de>\n"
|
||||
@@ -8332,6 +8332,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "Auflistung der Hooks"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "Nick Pointer (optional)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7875,6 +7875,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "lista de enganches"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "puntero del apodo (opcional)"
|
||||
|
||||
# translate command,timer?
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"PO-Revision-Date: 2013-07-27 23:19+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-28 12:33+0200\n"
|
||||
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -8109,6 +8109,9 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "liste des hooks"
|
||||
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "pointeur vers le hook (optionnel)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7079,6 +7079,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "Aliaszok listája:\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "Beállítások mentése a lemezre\n"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7944,6 +7944,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "elenco di hook"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "puntatore al nick (opzionale)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
|
||||
@@ -7814,6 +7814,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "フックリスト"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "ニックネームポインタ (オプション)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7960,6 +7960,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "lista powiązań"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "wskaźnik nicka (opcjonalne)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
+5
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:51+0200\n"
|
||||
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7278,6 +7278,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "ponteiro do apelido (opcional)"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:52+0200\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -7107,6 +7107,10 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr "Список сокращений:\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr "Сохраняю конфигурацию\n"
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.2-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-07-18 19:52+0200\n"
|
||||
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -6285,6 +6285,9 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr ""
|
||||
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
+4
-1
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.4.1-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2013-07-27 23:18+0200\n"
|
||||
"POT-Creation-Date: 2013-07-28 12:32+0200\n"
|
||||
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -6251,6 +6251,9 @@ msgstr ""
|
||||
msgid "list of hooks"
|
||||
msgstr ""
|
||||
|
||||
msgid "hook pointer (optional)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"type,arguments (type is command/timer/.., arguments to get only some hooks "
|
||||
"(can start or end with \"*\" as wildcard), both are optional)"
|
||||
|
||||
+389
-368
File diff suppressed because it is too large
Load Diff
@@ -431,6 +431,7 @@ extern struct t_hook *last_weechat_hook[];
|
||||
/* hook functions */
|
||||
|
||||
extern void hook_init ();
|
||||
extern int hook_valid (struct t_hook *hook);
|
||||
extern struct t_hook *hook_command (struct t_weechat_plugin *plugin,
|
||||
const char *command,
|
||||
const char *description,
|
||||
@@ -592,6 +593,7 @@ extern void unhook (struct t_hook *hook);
|
||||
extern void unhook_all_plugin (struct t_weechat_plugin *plugin);
|
||||
extern void unhook_all ();
|
||||
extern int hook_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_hook *hook,
|
||||
const char *arguments);
|
||||
extern void hook_print_log ();
|
||||
|
||||
|
||||
@@ -665,10 +665,14 @@ plugin_api_infolist_get_internal (void *data, const char *infolist_name,
|
||||
}
|
||||
else if (string_strcasecmp (infolist_name, "hook") == 0)
|
||||
{
|
||||
/* invalid hook pointer ? */
|
||||
if (pointer && !hook_valid (pointer))
|
||||
return NULL;
|
||||
|
||||
ptr_infolist = infolist_new ();
|
||||
if (ptr_infolist)
|
||||
{
|
||||
if (!hook_add_to_infolist (ptr_infolist, arguments))
|
||||
if (!hook_add_to_infolist (ptr_infolist, pointer, arguments))
|
||||
{
|
||||
infolist_free (ptr_infolist);
|
||||
return NULL;
|
||||
@@ -1154,7 +1158,7 @@ plugin_api_init ()
|
||||
NULL,
|
||||
&plugin_api_infolist_get_internal, NULL);
|
||||
hook_infolist (NULL, "hook", N_("list of hooks"),
|
||||
NULL,
|
||||
N_("hook pointer (optional)"),
|
||||
N_("type,arguments (type is command/timer/.., arguments to "
|
||||
"get only some hooks (can start or end with \"*\" as "
|
||||
"wildcard), both are optional)"),
|
||||
|
||||
Reference in New Issue
Block a user