Mercurial > pidgin.yaz
diff libpurple/plugin.h @ 21190:34de8ef19294
Honor a PURPLE_DISABLE_DEPRECATED define to allow plugins to catch
deprecated functions earlier rather than later.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sat, 06 Oct 2007 22:59:09 +0000 |
parents | d05f79920d50 |
children | 239cb5c2297b |
line wrap: on
line diff
--- a/libpurple/plugin.h Sat Oct 06 22:47:38 2007 +0000 +++ b/libpurple/plugin.h Sat Oct 06 22:59:09 2007 +0000 @@ -526,6 +526,7 @@ */ gboolean purple_plugins_enabled(void); +#ifndef PURPLE_DISABLE_DEPRECATED /** * Registers a function that will be called when probing is finished. * @@ -534,7 +535,9 @@ * @deprecated If you need this, ask for a plugin-probe signal to be added. */ void purple_plugins_register_probe_notify_cb(void (*func)(void *), void *data); +#endif +#ifndef PURPLE_DISABLE_DEPRECATED /** * Unregisters a function that would be called when probing is finished. * @@ -542,7 +545,9 @@ * @deprecated If you need this, ask for a plugin-probe signal to be added. */ void purple_plugins_unregister_probe_notify_cb(void (*func)(void *)); +#endif +#ifndef PURPLE_DISABLE_DEPRECATED /** * Registers a function that will be called when a plugin is loaded. * @@ -552,7 +557,9 @@ */ void purple_plugins_register_load_notify_cb(void (*func)(PurplePlugin *, void *), void *data); +#endif +#ifndef PURPLE_DISABLE_DEPRECATED /** * Unregisters a function that would be called when a plugin is loaded. * @@ -560,7 +567,9 @@ * @deprecated Use the plugin-load signal instead. */ void purple_plugins_unregister_load_notify_cb(void (*func)(PurplePlugin *, void *)); +#endif +#ifndef PURPLE_DISABLE_DEPRECATED /** * Registers a function that will be called when a plugin is unloaded. * @@ -570,7 +579,9 @@ */ void purple_plugins_register_unload_notify_cb(void (*func)(PurplePlugin *, void *), void *data); +#endif +#ifndef PURPLE_DISABLE_DEPRECATED /** * Unregisters a function that would be called when a plugin is unloaded. * @@ -579,6 +590,7 @@ */ void purple_plugins_unregister_unload_notify_cb(void (*func)(PurplePlugin *, void *)); +#endif /** * Finds a plugin with the specified name.