| 46 #define PURPLE_TYPE_PLUGIN_ACTION (purple_plugin_action_get_type()) |
46 #define PURPLE_TYPE_PLUGIN_ACTION (purple_plugin_action_get_type()) |
| 47 |
47 |
| 48 /** @copydoc _PurplePluginAction */ |
48 /** @copydoc _PurplePluginAction */ |
| 49 typedef struct _PurplePluginAction PurplePluginAction; |
49 typedef struct _PurplePluginAction PurplePluginAction; |
| 50 |
50 |
| |
51 #include "pluginpref.h" |
| |
52 |
| 51 typedef void (*PurplePluginActionCallback)(PurplePluginAction *); |
53 typedef void (*PurplePluginActionCallback)(PurplePluginAction *); |
| 52 |
54 typedef PurplePluginPrefFrame (*PurplePluginPrefFrameCallback)(GPluginPlugin *); |
| 53 #include "pluginpref.h" |
|
| 54 |
55 |
| 55 /** |
56 /** |
| 56 * Holds information about a plugin. |
57 * Holds information about a plugin. |
| 57 */ |
58 */ |
| 58 struct _PurplePluginInfo { |
59 struct _PurplePluginInfo { |
| 145 * |
146 * |
| 146 * @see purple_plugin_actions_add() |
147 * @see purple_plugin_actions_add() |
| 147 */ |
148 */ |
| 148 GList *purple_plugin_info_get_actions(PurplePluginInfo *plugin_info); |
149 GList *purple_plugin_info_get_actions(PurplePluginInfo *plugin_info); |
| 149 |
150 |
| |
151 /** |
| |
152 * Sets a callback to be invoked to retrieve the preferences frame for a plugin. |
| |
153 * |
| |
154 * @param plugin_info The plugin info to set the callback for. |
| |
155 * @param callback The callback that returns the preferences frame. |
| |
156 */ |
| |
157 void purple_plugin_info_set_pref_frame_callback(PurplePluginInfo *plugin_info, |
| |
158 PurplePluginPrefFrameCallback callback); |
| |
159 |
| |
160 /** |
| |
161 * Returns the callback that retrieves the preferences frame for a plugin. |
| |
162 * |
| |
163 * @param plugin_info The plugin info to get the callback from. |
| |
164 * |
| |
165 * @return The callback that returns the preferences frame. |
| |
166 */ |
| |
167 PurplePluginPrefFrameCallback |
| |
168 purple_plugin_info_get_pref_frame_callback(PurplePluginInfo *plugin_info); |
| |
169 |
| 150 /*@}*/ |
170 /*@}*/ |
| 151 |
171 |
| 152 /**************************************************************************/ |
172 /**************************************************************************/ |
| 153 /** @name Plugin actions API */ |
173 /** @name Plugin actions API */ |
| 154 /**************************************************************************/ |
174 /**************************************************************************/ |