libpurple/plugin.h

changeset 36057
d94f3563172b
parent 36054
501ed6c0631e
equal deleted inserted replaced
36056:4c36d9f09020 36057:d94f3563172b
185 void *ipc_data; 185 void *ipc_data;
186 void *extra; 186 void *extra;
187 gboolean unloadable; 187 gboolean unloadable;
188 GList *dependent_plugins; 188 GList *dependent_plugins;
189 gpointer ui_data; 189 gpointer ui_data;
190 GHashTable *extra_data;
191 190
192 /*< private >*/ 191 /*< private >*/
193 void (*_purple_reserved1)(void); 192 void (*_purple_reserved1)(void);
194 void (*_purple_reserved2)(void); 193 void (*_purple_reserved2)(void);
195 void (*_purple_reserved3)(void); 194 void (*_purple_reserved3)(void);
296 * Returns: A new PurplePlugin structure. 295 * Returns: A new PurplePlugin structure.
297 */ 296 */
298 PurplePlugin *purple_plugin_new(gboolean native, const char *path); 297 PurplePlugin *purple_plugin_new(gboolean native, const char *path);
299 298
300 /** 299 /**
301 * purple_plugin_set_data:
302 * @plugin: The plugin.
303 * @key: The data key.
304 * @value: The data to set.
305 *
306 * Sets extra data for particular plugin.
307 */
308 void
309 purple_plugin_set_data(PurplePlugin *plugin, const gchar *key, gpointer value);
310
311 /**
312 * purple_plugin_get_data:
313 * @plugin: The plugin.
314 * @key: The data key.
315 *
316 * Gets extra data for particular plugin.
317 *
318 * Returns: data set previously with #purple_plugin_set_data.
319 */
320 gpointer
321 purple_plugin_get_data(PurplePlugin *plugin, const gchar *key);
322
323 /**
324 * purple_plugin_probe: 300 * purple_plugin_probe:
325 * @filename: The plugin's filename. 301 * @filename: The plugin's filename.
326 * 302 *
327 * Probes a plugin, retrieving the information on it and adding it to the 303 * Probes a plugin, retrieving the information on it and adding it to the
328 * list of available plugins. 304 * list of available plugins.

mercurial