~vish/ubuntu/maverick/pidgin/bug25979

« back to all changes in this revision

Viewing changes to libpurple/plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-10-09 19:40:26 UTC
  • mfrom: (1.4.1 upstream) (46.1.10 karmic)
  • Revision ID: james.westby@ubuntu.com-20091009194026-wbqqh0bsbz19nx5q
Tags: 1:2.6.2-1ubuntu7
* Don't stick the buddy list window to all desktops as some
  window managers have trouble to properly unstick it (LP: #346840)
  - debian/patches/11_buddy_list_really_show.patch
* Always use default tray icon size on KDE (LP: #209440)
  - debian/patches/62_tray_icon_size_kde.patch
* Use scrollbars in the preferences dialog if the screen height is
  below 700 px instead of 600 px
  - debian/patches/60_1024x600_gtkprefs.c.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#ifndef _PURPLE_PLUGIN_H_
30
30
#define _PURPLE_PLUGIN_H_
31
31
 
32
 
#include <glib/glist.h>
 
32
#include <glib.h>
33
33
#include <gmodule.h>
34
34
#include "signals.h"
35
35
#include "value.h"
105
105
        void *ui_info; /**< Used only by UI-specific plugins to build a preference screen with a custom UI */
106
106
        void *extra_info;
107
107
        PurplePluginUiInfo *prefs_info; /**< Used by any plugin to display preferences.  If #ui_info has been specified, this will be ignored. */
 
108
 
 
109
        /**
 
110
         * This callback has a different use depending on whether this
 
111
         * plugin type is PURPLE_PLUGIN_STANDARD or PURPLE_PLUGIN_PROTOCOL.
 
112
         *
 
113
         * If PURPLE_PLUGIN_STANDARD then the list of actions will show up
 
114
         * in the Tools menu, under a submenu with the name of the plugin.
 
115
         * context will be NULL.
 
116
         *
 
117
         * If PURPLE_PLUGIN_PROTOCOL then the list of actions will show up
 
118
         * in the Accounts menu, under a submenu with the name of the
 
119
         * account.  context will be set to the PurpleConnection for that
 
120
         * account.  This callback will only be called for online accounts.
 
121
         */
108
122
        GList *(*actions)(PurplePlugin *plugin, gpointer context);
109
123
 
110
124
        void (*_purple_reserved1)(void);
188
202
        /** NULL for plugin actions menu, set to the PurpleConnection for
189
203
            account actions menu */
190
204
        gpointer context;
191
 
        
 
205
 
192
206
        gpointer user_data;
193
207
};
194
208
 
363
377
 * Returns a plugin's name.
364
378
 *
365
379
 * @param plugin The plugin.
366
 
 * 
 
380
 *
367
381
 * @return THe name of the plugin, or @c NULL.
368
382
 */
369
383
const gchar *purple_plugin_get_name(const PurplePlugin *plugin);
498
512
void purple_plugins_add_search_path(const char *path);
499
513
 
500
514
/**
 
515
 * Returns a list of plugin search paths.
 
516
 *
 
517
 * @constreturn A list of searched paths.
 
518
 *
 
519
 * @since 2.6.0
 
520
 */
 
521
GList *purple_plugins_get_search_paths(void);
 
522
 
 
523
/**
501
524
 * Unloads all loaded plugins.
502
525
 */
503
526
void purple_plugins_unload_all(void);
504
527
 
505
528
/**
 
529
 * Unloads all plugins of a specific type.
 
530
 */
 
531
void purple_plugins_unload(PurplePluginType type);
 
532
 
 
533
/**
506
534
 * Destroys all registered plugins.
507
535
 */
508
536
void purple_plugins_destroy_all(void);