Plugins: Added on_room_win_focus
This commit is contained in:
@@ -106,6 +106,7 @@ c_plugin_create(const char *const filename)
|
||||
plugin->on_contact_offline = c_on_contact_offline_hook;
|
||||
plugin->on_contact_presence = c_on_contact_presence_hook;
|
||||
plugin->on_chat_win_focus = c_on_chat_win_focus_hook;
|
||||
plugin->on_room_win_focus = c_on_room_win_focus_hook;
|
||||
|
||||
g_string_free(path, TRUE);
|
||||
g_free(module_name);
|
||||
@@ -487,6 +488,20 @@ c_on_chat_win_focus_hook(ProfPlugin *plugin, const char *const barejid)
|
||||
func(barejid);
|
||||
}
|
||||
|
||||
void
|
||||
c_on_room_win_focus_hook(ProfPlugin *plugin, const char *const roomjid)
|
||||
{
|
||||
void *f = NULL;
|
||||
void (*func)(const char *const __roomjid);
|
||||
assert(plugin && plugin->module);
|
||||
|
||||
if (NULL == (f = dlsym(plugin->module, "prof_on_room_win_focus")))
|
||||
return;
|
||||
|
||||
func = (void (*)(const char *const))f;
|
||||
func(roomjid);
|
||||
}
|
||||
|
||||
void
|
||||
c_plugin_destroy(ProfPlugin *plugin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user