diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-03 12:13:21 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-08-03 12:13:21 +0200 |
commit | b501fd1b2406c98181f2c5819008458a03e7771d (patch) | |
tree | 1c73fdc19ee3918f0009296411f33d4a29797ea3 /src/plugins/guile | |
parent | 746ca9623d151f69f4adcb9ac6d580c8dfaad559 (diff) | |
download | weechat-b501fd1b2406c98181f2c5819008458a03e7771d.zip |
scripts: add hdata with list of scripts for each language
Diffstat (limited to 'src/plugins/guile')
-rw-r--r-- | src/plugins/guile/weechat-guile.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c index 704e0c086..071c5252c 100644 --- a/src/plugins/guile/weechat-guile.c +++ b/src/plugins/guile/weechat-guile.c @@ -657,6 +657,21 @@ weechat_guile_completion_cb (void *data, const char *completion_item, } /* + * weechat_guile_hdata_cb: callback for hdata + */ + +struct t_hdata * +weechat_guile_hdata_cb (void *data, const char *hdata_name) +{ + /* make C compiler happy */ + (void) data; + + return plugin_script_hdata_script (weechat_plugin, + &guile_scripts, &last_guile_script, + hdata_name); +} + +/* * weechat_guile_infolist_cb: callback for infolist */ @@ -870,6 +885,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) init.callback_command = &weechat_guile_command_cb; init.callback_completion = &weechat_guile_completion_cb; + init.callback_hdata = &weechat_guile_hdata_cb; init.callback_infolist = &weechat_guile_infolist_cb; init.callback_signal_debug_dump = &weechat_guile_signal_debug_dump_cb; init.callback_signal_buffer_closed = &weechat_guile_signal_buffer_closed_cb; |