pidgin 2.14.14dev
gntplugin.h
Go to the documentation of this file.
1
6/* finch
7 *
8 * Finch is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */
26#ifndef _GNT_PLUGIN_H
27#define _GNT_PLUGIN_H
28
29#include <gnt.h>
30
31#include <plugin.h>
32#include <pluginpref.h>
33
34#include <string.h>
35
36#include "finch.h"
37
38/**********************************************************************
39 * @name GNT Plugins API
40 **********************************************************************/
43typedef GntWidget* (*FinchPluginFrame) (void);
44
45/* Guess where these came from */
46#define FINCH_PLUGIN_TYPE FINCH_UI
47
51#define PURPLE_IS_GNT_PLUGIN(plugin) \
52 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \
53 purple_strequal((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE))
54
58#define FINCH_PLUGIN_UI_INFO(plugin) \
59 (FinchPluginFrame)((plugin)->info->ui_info)
60
65
70
73#endif
void finch_plugins_show_all(void)
Show a list of plugins.
void finch_plugins_save_loaded(void)
Save the list of loaded plugins.
Plugin API.
Plugin Preferences API.