Mercurial > pidgin
comparison libpurple/plugin.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | 98520ee78f12 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
237 return purple_plugin_register(plugin); \ | 237 return purple_plugin_register(plugin); \ |
238 } | 238 } |
239 #endif | 239 #endif |
240 | 240 |
241 | 241 |
242 #ifdef __cplusplus | 242 G_BEGIN_DECLS |
243 extern "C" { | |
244 #endif | |
245 | 243 |
246 /**************************************************************************/ | 244 /**************************************************************************/ |
247 /** @name Plugin API */ | 245 /** @name Plugin API */ |
248 /**************************************************************************/ | 246 /**************************************************************************/ |
249 /*@{*/ | 247 /*@{*/ |
315 * | 313 * |
316 * This function adds the plugin to a list of plugins to "disable at the next | 314 * This function adds the plugin to a list of plugins to "disable at the next |
317 * startup" by excluding said plugins from the list of plugins to save. The | 315 * startup" by excluding said plugins from the list of plugins to save. The |
318 * UI needs to call purple_plugins_save_loaded() after calling this for it | 316 * UI needs to call purple_plugins_save_loaded() after calling this for it |
319 * to have any effect. | 317 * to have any effect. |
320 * | |
321 * @since 2.3.0 | |
322 */ | 318 */ |
323 void purple_plugin_disable(PurplePlugin *plugin); | 319 void purple_plugin_disable(PurplePlugin *plugin); |
324 | 320 |
325 /** | 321 /** |
326 * Reloads a plugin. | 322 * Reloads a plugin. |
513 | 509 |
514 /** | 510 /** |
515 * Returns a list of plugin search paths. | 511 * Returns a list of plugin search paths. |
516 * | 512 * |
517 * @constreturn A list of searched paths. | 513 * @constreturn A list of searched paths. |
518 * | |
519 * @since 2.6.0 | |
520 */ | 514 */ |
521 GList *purple_plugins_get_search_paths(void); | 515 GList *purple_plugins_get_search_paths(void); |
522 | 516 |
523 /** | 517 /** |
524 * Unloads all loaded plugins. | 518 * Unloads all loaded plugins. |
563 * Returns whether or not plugin support is enabled. | 557 * Returns whether or not plugin support is enabled. |
564 * | 558 * |
565 * @return TRUE if plugin support is enabled, or FALSE otherwise. | 559 * @return TRUE if plugin support is enabled, or FALSE otherwise. |
566 */ | 560 */ |
567 gboolean purple_plugins_enabled(void); | 561 gboolean purple_plugins_enabled(void); |
568 | |
569 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PLUGIN_C_) | |
570 /** | |
571 * Registers a function that will be called when probing is finished. | |
572 * | |
573 * @param func The callback function. | |
574 * @param data Data to pass to the callback. | |
575 * @deprecated If you need this, ask for a plugin-probe signal to be added. | |
576 */ | |
577 void purple_plugins_register_probe_notify_cb(void (*func)(void *), void *data); | |
578 #endif | |
579 | |
580 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PLUGIN_C_) | |
581 /** | |
582 * Unregisters a function that would be called when probing is finished. | |
583 * | |
584 * @param func The callback function. | |
585 * @deprecated If you need this, ask for a plugin-probe signal to be added. | |
586 */ | |
587 void purple_plugins_unregister_probe_notify_cb(void (*func)(void *)); | |
588 #endif | |
589 | |
590 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PLUGIN_C_) | |
591 /** | |
592 * Registers a function that will be called when a plugin is loaded. | |
593 * | |
594 * @param func The callback function. | |
595 * @param data Data to pass to the callback. | |
596 * @deprecated Use the plugin-load signal instead. | |
597 */ | |
598 void purple_plugins_register_load_notify_cb(void (*func)(PurplePlugin *, void *), | |
599 void *data); | |
600 #endif | |
601 | |
602 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PLUGIN_C_) | |
603 /** | |
604 * Unregisters a function that would be called when a plugin is loaded. | |
605 * | |
606 * @param func The callback function. | |
607 * @deprecated Use the plugin-load signal instead. | |
608 */ | |
609 void purple_plugins_unregister_load_notify_cb(void (*func)(PurplePlugin *, void *)); | |
610 #endif | |
611 | |
612 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PLUGIN_C_) | |
613 /** | |
614 * Registers a function that will be called when a plugin is unloaded. | |
615 * | |
616 * @param func The callback function. | |
617 * @param data Data to pass to the callback. | |
618 * @deprecated Use the plugin-unload signal instead. | |
619 */ | |
620 void purple_plugins_register_unload_notify_cb(void (*func)(PurplePlugin *, void *), | |
621 void *data); | |
622 #endif | |
623 | |
624 #if !(defined PURPLE_DISABLE_DEPRECATED) || (defined _PURPLE_PLUGIN_C_) | |
625 /** | |
626 * Unregisters a function that would be called when a plugin is unloaded. | |
627 * | |
628 * @param func The callback function. | |
629 * @deprecated Use the plugin-unload signal instead. | |
630 */ | |
631 void purple_plugins_unregister_unload_notify_cb(void (*func)(PurplePlugin *, | |
632 void *)); | |
633 #endif | |
634 | 562 |
635 /** | 563 /** |
636 * Finds a plugin with the specified name. | 564 * Finds a plugin with the specified name. |
637 * | 565 * |
638 * @param name The plugin name. | 566 * @param name The plugin name. |
731 * | 659 * |
732 * @param action The PurplePluginAction to free. | 660 * @param action The PurplePluginAction to free. |
733 */ | 661 */ |
734 void purple_plugin_action_free(PurplePluginAction *action); | 662 void purple_plugin_action_free(PurplePluginAction *action); |
735 | 663 |
736 #ifdef __cplusplus | 664 G_END_DECLS |
737 } | |
738 #endif | |
739 | 665 |
740 #endif /* _PURPLE_PLUGIN_H_ */ | 666 #endif /* _PURPLE_PLUGIN_H_ */ |