X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fgis-plugin.h;h=2feb8745178a4269ca470e5ad8618cc0f0837257;hb=1ccb2426332856ef04f0bfb35716520a94e0d32c;hp=6390f473fdd62f7f6f51bb2a093226fa8b40eb5c;hpb=d836e9913e3fa991c935a8e7d5064f9adb51e191;p=grits diff --git a/src/gis-plugin.h b/src/gis-plugin.h index 6390f47..2feb874 100644 --- a/src/gis-plugin.h +++ b/src/gis-plugin.h @@ -1,16 +1,16 @@ /* * Copyright (C) 2009 Andy Spencer - * + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ @@ -46,9 +46,7 @@ void gis_plugin_expose(GisPlugin *self); GtkWidget *gis_plugin_get_config(GisPlugin *self); /* Plugins API */ -#include "gis-world.h" -#include "gis-view.h" -#include "gis-opengl.h" +#include "gis-viewer.h" #include "gis-prefs.h" struct _GisPlugins { @@ -56,13 +54,13 @@ struct _GisPlugins { GPtrArray *plugins; }; -typedef GisPlugin *(*GisPluginConstructor)(GisWorld *world, GisView *view, GisOpenGL *opengl, GisPrefs *prefs); +typedef GisPlugin *(*GisPluginConstructor)(GisViewer *viewer, GisPrefs *prefs); GisPlugins *gis_plugins_new(gchar *dir); void gis_plugins_free(); GList *gis_plugins_available(GisPlugins *plugins); GisPlugin *gis_plugins_load(GisPlugins *plugins, const char *name, - GisWorld *world, GisView *view, GisOpenGL *opengl, GisPrefs *prefs); + GisViewer *viewer, GisPrefs *prefs); gboolean gis_plugins_unload(GisPlugins *plugins, const char *name); void gis_plugins_foreach(GisPlugins *plugins, GCallback callback, gpointer user_data);