Add gobject-2.0 fix to make TypeModule an abstract class
[cinaest] / vapi / gobject-2.0-fix.vapi
diff --git a/vapi/gobject-2.0-fix.vapi b/vapi/gobject-2.0-fix.vapi
new file mode 100644 (file)
index 0000000..f45e822
--- /dev/null
@@ -0,0 +1,15 @@
+using GLib;
+
+[CCode (cprefix = "G", lower_case_cprefix = "g_", cheader_filename = "glib.h", gir_namespace = "GObject", gir_version = "2.0")]
+namespace GLibFix {
+       [CCode (lower_case_csuffix = "type_module", unref_function = "")]
+       public abstract class TypeModule : Object, TypePlugin {
+               public bool use ();
+               public void unuse ();
+               public void set_name (string name);
+               [NoWrapper]
+               public abstract bool load ();
+               [NoWrapper]
+               public abstract void unload ();
+       }
+}