libpurple/plugins.h

branch
soc.2013.gobjectification.plugins
changeset 37023
d9bcdc9a91e6
parent 37022
d891503c8aa6
child 37034
9d6765962b22
--- a/libpurple/plugins.h	Wed Jan 29 10:10:12 2014 +0530
+++ b/libpurple/plugins.h	Wed Jan 29 10:49:02 2014 +0530
@@ -159,7 +159,7 @@
 /**
  * Returns an ABI version to set in plugins using major and minor versions.
  *
- * Note: The lower six nibbles represent the ABI version for libpurple, the
+ * @note The lower six nibbles represent the ABI version for libpurple, the
  *       rest are required by GPlugin.
  */
 #define PURPLE_PLUGIN_ABI_VERSION(major,minor) \
@@ -231,9 +231,9 @@
  * The type will be registered statically if used in a static protocol or if
  * plugins support is disabled.
  *
- * @TN:   The name of the new type, in Camel case.
- * @t_n:  The name of the new type, in lowercase, words separated by '_'.
- * @T_P:  The #GType of the parent type.
+ * @param TN   The name of the new type, in Camel case.
+ * @param t_n  The name of the new type, in lowercase, words separated by '_'.
+ * @param T_P  The #GType of the parent type.
  */
 #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_DEFINE_TYPE(TN, t_n, T_P) \
@@ -249,11 +249,11 @@
  * A more general version of PURPLE_DEFINE_TYPE() which allows you to
  * specify #GTypeFlags and custom code.
  *
- * @TN:     The name of the new type, in Camel case.
- * @t_n:    The name of the new type, in lowercase, words separated by '_'.
- * @T_P:    The #GType of the parent type.
- * @flags:  #GTypeFlags to register the type with.
- * @CODE:   Custom code that gets inserted in *_get_type().
+ * @param TN     The name of the new type, in Camel case.
+ * @param t_n    The name of the new type, in lowercase, words separated by '_'.
+ * @param T_P    The #GType of the parent type.
+ * @param flags  #GTypeFlags to register the type with.
+ * @param CODE   Custom code that gets inserted in *_get_type().
  */
 #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_DEFINE_TYPE_EXTENDED \
@@ -270,8 +270,8 @@
  * of PURPLE_DEFINE_TYPE_EXTENDED(). You should use this macro if the
  * interface is a part of the libpurple core.
  *
- * @TYPE_IFACE:  The #GType of the interface to add.
- * @iface_init:  The interface init function.
+ * @param TYPE_IFACE  The #GType of the interface to add.
+ * @param iface_init  The interface init function.
  */
 #define PURPLE_IMPLEMENT_INTERFACE_STATIC(TYPE_IFACE, iface_init) { \
 	const GInterfaceInfo interface_info = { \
@@ -287,8 +287,8 @@
  * of PURPLE_DEFINE_TYPE_EXTENDED(). You should use this macro if the
  * interface lives in the plugin.
  *
- * @TYPE_IFACE:  The #GType of the interface to add.
- * @iface_init:  The interface init function.
+ * @param TYPE_IFACE  The #GType of the interface to add.
+ * @param iface_init  The interface init function.
  */
 #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL)
 #define PURPLE_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) \
@@ -379,11 +379,11 @@
 /**
  * Attempts to load a plugin.
  *
- * @plugin: The plugin to load.
- * @error:  Return location for a #GError or %NULL. If provided, this
+ * @param plugin The plugin to load.
+ * @param error  Return location for a #GError or @c NULL. If provided, this
  *               will be set to the reason if the load fails.
  *
- * Returns: %TRUE if successful or already loaded, %FALSE otherwise.
+ * @return @c TRUE if successful or already loaded, @c FALSE otherwise.
  *
  * @see purple_plugin_unload()
  */
@@ -392,11 +392,11 @@
 /**
  * Unloads the specified plugin.
  *
- * @plugin: The plugin handle.
- * @error:  Return location for a #GError or %NULL. If provided, this
+ * @param plugin The plugin handle.
+ * @param error  Return location for a #GError or @c NULL. If provided, this
  *               will be set to the reason if the unload fails.
  *
- * Returns: %TRUE if successful or not loaded, %FALSE otherwise.
+ * @return @c TRUE if successful or not loaded, @c FALSE otherwise.
  *
  * @see purple_plugin_load()
  */
@@ -405,27 +405,27 @@
 /**
  * Returns whether or not a plugin is currently loaded.
  *
- * @plugin: The plugin.
+ * @param plugin The plugin.
  *
- * Returns: %TRUE if loaded, or %FALSE otherwise.
+ * @return @c TRUE if loaded, or @c FALSE otherwise.
  */
 gboolean purple_plugin_is_loaded(const PurplePlugin *plugin);
 
 /**
  * Returns a plugin's filename, along with the path.
  *
- * @info: The plugin.
+ * @param info The plugin.
  *
- * Returns: The plugin's filename.
+ * @return The plugin's filename.
  */
 const gchar *purple_plugin_get_filename(const PurplePlugin *plugin);
 
 /**
  * Returns a plugin's #PurplePluginInfo instance.
  *
- * @info: The plugin.
+ * @param info The plugin.
  *
- * Returns: The plugin's #PurplePluginInfo instance.
+ * @return The plugin's #PurplePluginInfo instance.
  */
 PurplePluginInfo *purple_plugin_get_info(const PurplePlugin *plugin);
 
@@ -442,15 +442,15 @@
 /**
  * Registers a new dynamic type.
  *
- * @plugin:  The plugin that is registering the type.
- * @parent:  Type from which this type will be derived.
- * @name:    Name of the new type.
- * @info:    Information to initialize and destroy a type's classes and
+ * @param plugin  The plugin that is registering the type.
+ * @param parent  Type from which this type will be derived.
+ * @param name    Name of the new type.
+ * @param info    Information to initialize and destroy a type's classes and
  *                instances.
- * @flags:   Bitwise combination of values that determines the nature
+ * @param flags   Bitwise combination of values that determines the nature
  *                (e.g. abstract or not) of the type.
  *
- * Returns: The new GType, or @c G_TYPE_INVALID if registration failed.
+ * @return The new GType, or @c G_TYPE_INVALID if registration failed.
  */
 GType purple_plugin_register_type(PurplePlugin *plugin, GType parent,
                                   const gchar *name, const GTypeInfo *info,
@@ -459,10 +459,10 @@
 /**
  * Adds a dynamic interface type to an instantiable type.
  *
- * @plugin:          The plugin that is adding the interface type.
- * @instance_type:   The GType of the instantiable type.
- * @interface_type:  The GType of the interface type.
- * @interface_info:  Information used to manage the interface type.
+ * @param plugin          The plugin that is adding the interface type.
+ * @param instance_type   The GType of the instantiable type.
+ * @param interface_type  The GType of the interface type.
+ * @param interface_info  Information used to manage the interface type.
  */
 void purple_plugin_add_interface(PurplePlugin *plugin, GType instance_type,
                                  GType interface_type,
@@ -474,18 +474,18 @@
  * not be shown in plugin lists. Examples of such plugins are in-tree protocol
  * plugins, loaders etc.
  *
- * @plugin: The plugin.
+ * @param plugin The plugin.
  *
- * Returns: %TRUE if the plugin is an internal plugin, %FALSE otherwise.
+ * @return @c TRUE if the plugin is an internal plugin, @c FALSE otherwise.
  */
 gboolean purple_plugin_is_internal(const PurplePlugin *plugin);
 
 /**
  * Returns a list of plugins that depend on a particular plugin.
  *
- * @plugin: The plugin whose dependent plugins are returned.
+ * @param plugin The plugin whose dependent plugins are returned.
  *
- * Returns: (transfer none): The list of a plugins that depend on the specified plugin.
+ * @constreturn The list of a plugins that depend on the specified plugin.
  */
 GSList *purple_plugin_get_dependent_plugins(const PurplePlugin *plugin);
 
@@ -539,11 +539,11 @@
  *                             preferences request handle for the plugin.     \n
  * "flags"            (PurplePluginInfoFlags) The flags for a plugin.         \n
  *
- * @first_property:  The first property name
- * @...:  The value of the first property, followed optionally by more
- *             name/value pairs, followed by %NULL
+ * @param first_property  The first property name
+ * @param ...  The value of the first property, followed optionally by more
+ *             name/value pairs, followed by @c NULL
  *
- * Returns: A new #PurplePluginInfo instance.
+ * @return A new #PurplePluginInfo instance.
  *
  * @see PURPLE_PLUGIN_ABI_VERSION
  * @see @ref plugin-ids
@@ -554,63 +554,63 @@
 /**
  * Returns a plugin's ID.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The plugin's ID.
+ * @return The plugin's ID.
  */
 const gchar *purple_plugin_info_get_id(const PurplePluginInfo *info);
 
 /**
  * Returns a plugin's translated name.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The name of the plugin, or %NULL.
+ * @return The name of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_name(const PurplePluginInfo *info);
 
 /**
  * Returns a plugin's version.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The version of the plugin, or %NULL.
+ * @return The version of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_version(const PurplePluginInfo *info);
 
 /**
  * Returns a plugin's primary category.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The primary category of the plugin, or %NULL.
+ * @return The primary category of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_category(const PurplePluginInfo *info);
 
 /**
  * Returns a plugin's summary.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The summary of the plugin, or %NULL.
+ * @return The summary of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_summary(const PurplePluginInfo *info);
 
 /**
  * Returns a plugin's description.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The description of the plugin, or %NULL.
+ * @return The description of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_description(const PurplePluginInfo *info);
 
 /**
  * Returns a NULL-terminated list of the plugin's authors.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The authors of the plugin, or %NULL.
+ * @return The authors of the plugin, or @c NULL.
  */
 const gchar * const *
 purple_plugin_info_get_authors(const PurplePluginInfo *info);
@@ -618,54 +618,54 @@
 /**
  * Returns a plugin's website.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The website of the plugin, or %NULL.
+ * @return The website of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_website(const PurplePluginInfo *info);
 
 /**
  * Returns the path to a plugin's icon.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The path to the plugin's icon, or %NULL.
+ * @return The path to the plugin's icon, or @c NULL.
  */
 const gchar *purple_plugin_info_get_icon(const PurplePluginInfo *info);
 
 /**
  * Returns a short name of the plugin's license.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The license name of the plugin, or %NULL.
+ * @return The license name of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_license_id(const PurplePluginInfo *info);
 
 /**
  * Returns the text of a plugin's license.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The license text of the plugin, or %NULL.
+ * @return The license text of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_license_text(const PurplePluginInfo *info);
 
 /**
  * Returns the URL of a plugin's license.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The license URL of the plugin, or %NULL.
+ * @return The license URL of the plugin, or @c NULL.
  */
 const gchar *purple_plugin_info_get_license_url(const PurplePluginInfo *info);
 
 /**
  * Returns a NULL-terminated list of IDs of plugins required by a plugin.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The dependencies of the plugin, or %NULL.
+ * @return The dependencies of the plugin, or @c NULL.
  */
 const gchar * const *
 purple_plugin_info_get_dependencies(const PurplePluginInfo *info);
@@ -673,9 +673,9 @@
 /**
  * Returns the required purple ABI version for a plugin.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The required purple ABI version for the plugin.
+ * @return The required purple ABI version for the plugin.
  */
 guint32 purple_plugin_info_get_abi_version(const PurplePluginInfo *info);
 
@@ -683,9 +683,9 @@
  * Returns the callback that retrieves the list of actions a plugin can perform
  * at that moment.
  *
- * @info: The plugin info to get the callback from.
+ * @param info The plugin info to get the callback from.
  *
- * Returns: The callback that returns a list of #PurplePluginAction
+ * @return The callback that returns a list of #PurplePluginAction
  *         instances corresponding to the actions a plugin can perform.
  */
 PurplePluginActionsCb
@@ -695,9 +695,9 @@
  * Returns a callback that gives extra information about a plugin. You must
  * free the string returned by this callback.
  *
- * @info: The plugin info to get extra information from.
+ * @param info The plugin info to get extra information from.
  *
- * Returns: The callback that returns extra information about a plugin.
+ * @return The callback that returns extra information about a plugin.
  */
 PurplePluginExtraCb
 purple_plugin_info_get_extra_cb(const PurplePluginInfo *info);
@@ -706,9 +706,9 @@
  * Returns the callback that retrieves the preferences frame for a plugin, set
  * via the "pref-frame-cb" property of the plugin info.
  *
- * @info: The plugin info to get the callback from.
+ * @param info The plugin info to get the callback from.
  *
- * Returns: The callback that returns the preferences frame.
+ * @return The callback that returns the preferences frame.
  */
 PurplePluginPrefFrameCb
 purple_plugin_info_get_pref_frame_cb(const PurplePluginInfo *info);
@@ -717,9 +717,9 @@
  * Returns the callback that retrieves the preferences request handle for a
  * plugin, set via the "pref-request-cb" property of the plugin info.
  *
- * @info: The plugin info to get the callback from.
+ * @param info The plugin info to get the callback from.
  *
- * Returns: The callback that returns the preferences request handle.
+ * @return The callback that returns the preferences request handle.
  */
 PurplePluginPrefRequestCb
 purple_plugin_info_get_pref_request_cb(const PurplePluginInfo *info);
@@ -727,9 +727,9 @@
 /**
  * Returns the plugin's flags.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The flags of the plugin.
+ * @return The flags of the plugin.
  */
 PurplePluginInfoFlags
 purple_plugin_info_get_flags(const PurplePluginInfo *info);
@@ -738,26 +738,26 @@
  * Returns an error in the plugin info that would prevent the plugin from being
  * loaded.
  *
- * @info: The plugin info.
+ * @param info The plugin info.
  *
- * Returns: The plugin info error, or %NULL.
+ * @return The plugin info error, or @c NULL.
  */
 const gchar *purple_plugin_info_get_error(const PurplePluginInfo *info);
 
 /**
  * Set the UI data associated with a plugin.
  *
- * @info: The plugin's info instance.
- * @ui_data: A pointer to associate with this object.
+ * @param info The plugin's info instance.
+ * @param ui_data A pointer to associate with this object.
  */
 void purple_plugin_info_set_ui_data(PurplePluginInfo *info, gpointer ui_data);
 
 /**
  * Returns the UI data associated with a plugin.
  *
- * @info: The plugin's info instance.
+ * @param info The plugin's info instance.
  *
- * Returns: The UI data associated with this plugin.  This is a
+ * @return The UI data associated with this plugin.  This is a
  *         convenience field provided to the UIs--it is not
  *         used by the libpurple core.
  */
@@ -779,8 +779,8 @@
  * Allocates and returns a new PurplePluginAction. Use this to add actions in a
  * list in the "actions-cb" callback for your plugin.
  *
- * @label:    The description of the action to show to the user.
- * @callback: The callback to call when the user selects this action.
+ * @param label    The description of the action to show to the user.
+ * @param callback The callback to call when the user selects this action.
  */
 PurplePluginAction *purple_plugin_action_new(const char* label,
 		PurplePluginActionCb callback);
@@ -788,7 +788,7 @@
 /**
  * Frees a PurplePluginAction
  *
- * @action: The PurplePluginAction to free.
+ * @param action The PurplePluginAction to free.
  */
 void purple_plugin_action_free(PurplePluginAction *action);
 
@@ -802,7 +802,7 @@
 /**
  * Returns a list of all plugins, whether loaded or not.
  *
- * Returns: A list of all plugins. The list is owned by the caller, and must be
+ * @return A list of all plugins. The list is owned by the caller, and must be
  *         g_list_free()d to avoid leaking the nodes.
  */
 GList *purple_plugins_find_all(void);
@@ -810,14 +810,14 @@
 /**
  * Returns a list of all loaded plugins.
  *
- * Returns: (transfer none): A list of all loaded plugins.
+ * @constreturn A list of all loaded plugins.
  */
 GList *purple_plugins_get_loaded(void);
 
 /**
  * Add a new directory to search for plugins
  *
- * @path: The new search path.
+ * @param path The new search path.
  */
 void purple_plugins_add_search_path(const gchar *path);
 
@@ -832,18 +832,18 @@
 /**
  * Finds a plugin with the specified plugin ID.
  *
- * @id: The plugin ID.
+ * @param id The plugin ID.
  *
- * Returns: The plugin if found, or %NULL if not found.
+ * @return The plugin if found, or @c NULL if not found.
  */
 PurplePlugin *purple_plugins_find_plugin(const gchar *id);
 
 /**
  * Finds a plugin with the specified filename (filename with a path).
  *
- * @filename: The plugin filename.
+ * @param filename The plugin filename.
  *
- * Returns: The plugin if found, or %NULL if not found.
+ * @return The plugin if found, or @c NULL if not found.
  */
 PurplePlugin *purple_plugins_find_by_filename(const char *filename);
 
@@ -851,7 +851,7 @@
  * Saves the list of loaded plugins to the specified preference key.
  * Plugins that are set to auto-load are not saved.
  *
- * @key: The preference key to save the list of plugins to.
+ * @param key The preference key to save the list of plugins to.
  */
 void purple_plugins_save_loaded(const char *key);
 
@@ -859,7 +859,7 @@
  * Attempts to load all the plugins in the specified preference key
  * that were loaded when purple last quit.
  *
- * @key: The preference key containing the list of plugins.
+ * @param key The preference key containing the list of plugins.
  */
 void purple_plugins_load_saved(const char *key);
 
@@ -873,7 +873,7 @@
 /**
  * Returns the plugin subsystem handle.
  *
- * Returns: The plugin sybsystem handle.
+ * @return The plugin sybsystem handle.
  */
 void *purple_plugins_get_handle(void);
 

mercurial