gntplugin.h

Go to the documentation of this file.
00001 
00025 #ifndef _GNT_PLUGIN_H
00026 #define _GNT_PLUGIN_H
00027 
00028 #include <gnt.h>
00029 
00030 #include <plugin.h>
00031 #include <pluginpref.h>
00032 
00033 #include <string.h>
00034 
00035 #include "finch.h"
00036 
00037 /**********************************************************************
00038  * @name GNT Plugins API
00039  **********************************************************************/
00042 typedef GntWidget* (*FinchPluginFrame) ();
00043 
00044 /* Guess where these came from */
00045 #define FINCH_PLUGIN_TYPE FINCH_UI
00046 
00050 #define PURPLE_IS_GNT_PLUGIN(plugin) \
00051     ((plugin)->info != NULL && (plugin)->info->ui_info != NULL && \
00052      !strcmp((plugin)->info->ui_requirement, FINCH_PLUGIN_TYPE))
00053 
00057 #define FINCH_PLUGIN_UI_INFO(plugin) \
00058     (FinchPluginFrame)((plugin)->info->ui_info)
00059 
00063 void finch_plugins_show_all(void);
00064 
00068 void finch_plugins_save_loaded(void);
00069 
00072 #endif