Mercurial > pidgin
changeset 27092:19cbe3af6167
Add a purple_plugins_get_search_paths function.
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Thu, 18 Jun 2009 22:48:49 +0000 |
parents | 83a36e594d5d |
children | 77177e6000e4 |
files | ChangeLog.API libpurple/plugin.c libpurple/plugin.h |
diffstat | 3 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog.API Thu Jun 18 12:21:48 2009 +0000 +++ b/ChangeLog.API Thu Jun 18 22:48:49 2009 +0000 @@ -39,6 +39,7 @@ * purple_network_set_turn_server * purple_network_get_stun_ip * purple_network_get_turn_ip + * purple_plugins_get_search_paths * purple_proxy_connect_udp * purple_prpl_get_media_caps * purple_prpl_got_account_actions
--- a/libpurple/plugin.c Thu Jun 18 12:21:48 2009 +0000 +++ b/libpurple/plugin.c Thu Jun 18 22:48:49 2009 +0000 @@ -1222,6 +1222,12 @@ search_paths = g_list_append(search_paths, g_strdup(path)); } +GList * +purple_plugins_get_search_paths() +{ + return search_paths; +} + void purple_plugins_unload_all(void) {
--- a/libpurple/plugin.h Thu Jun 18 12:21:48 2009 +0000 +++ b/libpurple/plugin.h Thu Jun 18 22:48:49 2009 +0000 @@ -512,6 +512,15 @@ void purple_plugins_add_search_path(const char *path); /** + * Returns a list of plugin search paths. + * + * @constreturn A list of searched paths. + * + * @since 2.6.0 + */ +GList *purple_plugins_get_search_paths(void); + +/** * Unloads all loaded plugins. */ void purple_plugins_unload_all(void);