From b501fd1b2406c98181f2c5819008458a03e7771d Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 3 Aug 2012 12:13:21 +0200 Subject: scripts: add hdata with list of scripts for each language --- src/plugins/lua/weechat-lua.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/plugins/lua') diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c index 654462d27..a1e9110bb 100644 --- a/src/plugins/lua/weechat-lua.c +++ b/src/plugins/lua/weechat-lua.c @@ -615,6 +615,21 @@ weechat_lua_completion_cb (void *data, const char *completion_item, return WEECHAT_RC_OK; } +/* + * weechat_lua_hdata_cb: callback for hdata + */ + +struct t_hdata * +weechat_lua_hdata_cb (void *data, const char *hdata_name) +{ + /* make C compiler happy */ + (void) data; + + return plugin_script_hdata_script (weechat_plugin, + &lua_scripts, &last_lua_script, + hdata_name); +} + /* * weechat_lua_infolist_cb: callback for infolist */ @@ -761,6 +776,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) init.callback_command = &weechat_lua_command_cb; init.callback_completion = &weechat_lua_completion_cb; + init.callback_hdata = &weechat_lua_hdata_cb; init.callback_infolist = &weechat_lua_infolist_cb; init.callback_signal_debug_dump = &weechat_lua_signal_debug_dump_cb; init.callback_signal_buffer_closed = &weechat_lua_signal_buffer_closed_cb; -- cgit v1.2.3