| 196 |
196 |
| 197 /* TODO */ |
197 /* TODO */ |
| 198 const gchar *purple_plugin_info_get_version(const PurplePluginInfo *info); |
198 const gchar *purple_plugin_info_get_version(const PurplePluginInfo *info); |
| 199 |
199 |
| 200 /* TODO */ |
200 /* TODO */ |
| |
201 const gchar *purple_plugin_info_get_category(const PurplePluginInfo *info); |
| |
202 |
| |
203 /* TODO */ |
| 201 const gchar *purple_plugin_info_get_summary(const PurplePluginInfo *info); |
204 const gchar *purple_plugin_info_get_summary(const PurplePluginInfo *info); |
| 202 |
205 |
| 203 /* TODO */ |
206 /* TODO */ |
| 204 const gchar *purple_plugin_info_get_description(const PurplePluginInfo *info); |
207 const gchar *purple_plugin_info_get_description(const PurplePluginInfo *info); |
| 205 |
208 |
| 206 /* TODO */ |
209 /* TODO */ |
| 207 const gchar *purple_plugin_info_get_author(const PurplePluginInfo *info); |
210 const gchar *purple_plugin_info_get_author(const PurplePluginInfo *info); |
| 208 |
211 |
| 209 /* TODO */ |
212 /* TODO */ |
| 210 const gchar *purple_plugin_info_get_website(const PurplePluginInfo *info); |
213 const gchar *purple_plugin_info_get_website(const PurplePluginInfo *info); |
| |
214 |
| |
215 /* TODO */ |
| |
216 const gchar *purple_plugin_info_get_icon(const PurplePluginInfo *info); |
| |
217 |
| |
218 /* TODO */ |
| |
219 const gchar *purple_plugin_info_get_license(const PurplePluginInfo *info); |
| 211 |
220 |
| 212 /* TODO */ |
221 /* TODO */ |
| 213 guint32 purple_plugin_info_get_abi_version(const PurplePluginInfo *info); |
222 guint32 purple_plugin_info_get_abi_version(const PurplePluginInfo *info); |
| 214 |
223 |
| 215 /** |
224 /** |
| 220 * @constreturn A list of #PurplePluginAction instances corresponding to the |
229 * @constreturn A list of #PurplePluginAction instances corresponding to the |
| 221 * actions a plugin can perform. |
230 * actions a plugin can perform. |
| 222 * |
231 * |
| 223 * @see purple_plugin_add_action() |
232 * @see purple_plugin_add_action() |
| 224 */ |
233 */ |
| 225 GList *purple_plugin_info_get_actions(const PurplePluginInfo *plugin_info); |
234 GList *purple_plugin_info_get_actions(const PurplePluginInfo *info); |
| 226 |
235 |
| 227 /** |
236 /** |
| 228 * Returns whether or not a plugin is loadable. |
237 * Returns whether or not a plugin is loadable. |
| 229 * |
238 * |
| 230 * If this returns @c FALSE, the plugin is guaranteed to not |
239 * If this returns @c FALSE, the plugin is guaranteed to not |
| 237 * @return @c TRUE if the plugin may be loadable, @c FALSE if the plugin is not |
246 * @return @c TRUE if the plugin may be loadable, @c FALSE if the plugin is not |
| 238 * loadable. |
247 * loadable. |
| 239 * |
248 * |
| 240 * @see purple_plugin_info_get_error() |
249 * @see purple_plugin_info_get_error() |
| 241 */ |
250 */ |
| 242 gboolean purple_plugin_info_is_loadable(const PurplePluginInfo *plugin_info); |
251 gboolean purple_plugin_info_is_loadable(const PurplePluginInfo *info); |
| 243 |
252 |
| 244 /** |
253 /** |
| 245 * If a plugin is not loadable, this returns the reason. |
254 * If a plugin is not loadable, this returns the reason. |
| 246 * |
255 * |
| 247 * @param plugin_info The plugin info of the plugin. |
256 * @param plugin_info The plugin info of the plugin. |
| 248 * |
257 * |
| 249 * @return The reason why the plugin is not loadable. |
258 * @return The reason why the plugin is not loadable. |
| 250 */ |
259 */ |
| 251 gchar *purple_plugin_info_get_error(const PurplePluginInfo *plugin_info); |
260 gchar *purple_plugin_info_get_error(const PurplePluginInfo *info); |
| 252 |
261 |
| 253 /* TODO */ |
262 /* TODO */ |
| 254 GSList *purple_plugin_info_get_dependencies(const PurplePluginInfo *info); |
263 GSList *purple_plugin_info_get_dependencies(const PurplePluginInfo *info); |
| 255 |
264 |
| 256 /** |
265 /** |
| 257 * Sets a callback to be invoked to retrieve the preferences frame for a plugin. |
266 * Sets a callback to be invoked to retrieve the preferences frame for a plugin. |
| 258 * |
267 * |
| 259 * @param plugin_info The plugin info to set the callback for. |
268 * @param plugin_info The plugin info to set the callback for. |
| 260 * @param callback The callback that returns the preferences frame. |
269 * @param callback The callback that returns the preferences frame. |
| 261 */ |
270 */ |
| 262 void purple_plugin_info_set_pref_frame_callback(PurplePluginInfo *plugin_info, |
271 void purple_plugin_info_set_pref_frame_callback(PurplePluginInfo *info, |
| 263 PurplePluginPrefFrameCallback callback); |
272 PurplePluginPrefFrameCallback callback); |
| 264 |
273 |
| 265 /** |
274 /** |
| 266 * Returns the callback that retrieves the preferences frame for a plugin. |
275 * Returns the callback that retrieves the preferences frame for a plugin. |
| 267 * |
276 * |
| 268 * @param plugin_info The plugin info to get the callback from. |
277 * @param plugin_info The plugin info to get the callback from. |
| 269 * |
278 * |
| 270 * @return The callback that returns the preferences frame. |
279 * @return The callback that returns the preferences frame. |
| 271 */ |
280 */ |
| 272 PurplePluginPrefFrameCallback |
281 PurplePluginPrefFrameCallback |
| 273 purple_plugin_info_get_pref_frame_callback(const PurplePluginInfo *plugin_info); |
282 purple_plugin_info_get_pref_frame_callback(const PurplePluginInfo *info); |
| 274 |
283 |
| 275 /*@}*/ |
284 /*@}*/ |
| 276 |
285 |
| 277 /**************************************************************************/ |
286 /**************************************************************************/ |
| 278 /** @name PluginAction API */ |
287 /** @name PluginAction API */ |