]> Pileus Git - grits/blobdiff - src/gis-plugin.h
Update copyright and email address
[grits] / src / gis-plugin.h
index 7fd75a7b134bbce4abc1fab8d4e3334c01efb2cb..685c8a125bb39d6606ab76cdf95059016c478a42 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009 Andy Spencer <spenceal@rose-hulman.edu>
+ * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
  *
  * 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
@@ -35,7 +35,6 @@ struct _GisPluginInterface
        GTypeInterface parent_iface;
 
        /* Virtual functions */
-       void       (*expose    )(GisPlugin *self);
        GtkWidget *(*get_config)(GisPlugin *self);
 };
 
@@ -46,23 +45,21 @@ 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 {
-       gchar     *dir;
-       GPtrArray *plugins;
+       gchar *dir;
+       GList *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);