00001 00006 /* finch 00007 * 00008 * Finch is the legal property of its developers, whose names are too numerous 00009 * to list here. Please refer to the COPYRIGHT file distributed with this 00010 * source distribution. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 00025 */ 00026 #ifndef _GNT_PLUGIN_H 00027 #define _GNT_PLUGIN_H 00028 00029 #include <gnt.h> 00030 00031 #include <plugin.h> 00032 #include <pluginpref.h> 00033 00034 #include <string.h> 00035 00036 #include "finch.h" 00037 00038 /********************************************************************** 00039 * @name GNT Plugins API 00040 **********************************************************************/ 00043 typedef GntWidget* (*FinchPluginFrame) (void); 00044 00045 /* Guess where these came from */ 00046 #define FINCH_PLUGIN_TYPE FINCH_UI 00047 00051 #define PURPLE_IS_GNT_PLUGIN(plugin) \ 00052 ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \ 00053 !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE)) 00054 00058 #define FINCH_PLUGIN_UI_INFO(plugin) \ 00059 (FinchPluginFrame)((plugin)->info->ui_info) 00060 00064 void finch_plugins_show_all(void); 00065 00069 void finch_plugins_save_loaded(void); 00070 00073 #endif