X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis-plugin.h;h=9913e545f7450668a46e0f8b1a648ba9b18b51d0;hp=fc85f444dc481781d955957198be2ad692f1f41b;hb=493d43d94211a91415dae58d0d107ce7c0d0094a;hpb=6cbd796209e724ddff668447337069539498c243 diff --git a/src/gis-plugin.h b/src/gis-plugin.h index fc85f44..9913e54 100644 --- a/src/gis-plugin.h +++ b/src/gis-plugin.h @@ -21,6 +21,9 @@ #include #include +/******************** + * Plugin interface * + ********************/ #define GIS_TYPE_PLUGIN (gis_plugin_get_type()) #define GIS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIS_TYPE_PLUGIN, GisPlugin)) #define GIS_IS_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIS_TYPE_PLUGIN)) @@ -50,12 +53,24 @@ const gchar *gis_plugin_get_description(GisPlugin *plugin); GtkWidget *gis_plugin_get_config(GisPlugin *plugin); -/* Plugins API */ +/*************** + * Plugins API * + ***************/ typedef struct _GisPlugins GisPlugins; #include "gis-viewer.h" #include "gis-prefs.h" +/** + * GisPluginConstructor: + * @viewer: the viewer the plugin is associated with + * @prefs: preferences the plugin can use for storing informtion + * + * Create a new instance of a plugin. Each plugin should supply a constructor named + * gis_plugin_NAME_new in it's shared object. + * + * Returns: the new plugin + */ typedef GisPlugin *(*GisPluginConstructor)(GisViewer *viewer, GisPrefs *prefs); struct _GisPlugins {