[gupnp] Lower gobject-introspection requirement



commit 578c58e5e5fbee1bf549072ec8791f345018622a
Author: Jens Georg <mail jensge org>
Date:   Wed Oct 24 20:19:57 2012 +0200

    Lower gobject-introspection requirement

 configure.ac               |    2 +-
 vala/GUPnP-1.0.metadata    |    8 ++++++++
 vala/gupnp-1.0-custom.vala |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2d34c40..bdf8c3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,7 +127,7 @@ if test "x$enable_debug" = "xyes"; then
         CFLAGS="$CFLAGS -g -Wall -Werror"
 fi
 
-GOBJECT_INTROSPECTION_CHECK([1.33.4])
+GOBJECT_INTROSPECTION_CHECK([0.6.4])
 
 # vapigen
 AS_IF([test "x$found_introspection" = "xyes"],
diff --git a/vala/GUPnP-1.0.metadata b/vala/GUPnP-1.0.metadata
index f6d6061..350e041 100644
--- a/vala/GUPnP-1.0.metadata
+++ b/vala/GUPnP-1.0.metadata
@@ -26,3 +26,11 @@ ServiceProxy
     .end_action_list skip
     .send_action_hash skip
     .send_action_list skip
+ControlError skip
+control_error_quark skip
+EventingError skip
+eventing_error_quark skip
+ServerError skip
+server_error_quark skip
+XMLError skip
+xml_error_quark skip
diff --git a/vala/gupnp-1.0-custom.vala b/vala/gupnp-1.0-custom.vala
index 386fa80..9f3c5b3 100644
--- a/vala/gupnp-1.0-custom.vala
+++ b/vala/gupnp-1.0-custom.vala
@@ -29,3 +29,40 @@ public class GUPnP.ServiceProxy : GUPnP.ServiceInfo {
     public bool send_action_hash (string action, [CCode (pos=-0.9)] GLib.HashTable<string, GLib.Value?> in_hash, [CCode (pos=-0.8)] GLib.HashTable<string, weak GLib.Value*> out_hash) throws GLib.Error;
     public bool send_action_list (string action, [CCode (pos=-0.9)] GLib.List<string> in_names, [CCode (pos=-0.8)] GLib.List<weak GLib.Value?> in_values, [CCode (pos=-0.7)] GLib.List<string> out_names, [CCode (pos=-0.6)] GLib.List<GLib.Type?> out_types, [CCode (pos=-0.5)] out GLib.List<weak GLib.Value*> out_values) throws GLib.Error;
 }
+
+namespace GUPnP {
+	[CCode (cheader_filename = "libgupnp/gupnp.h", cprefix = "GUPNP_CONTROL_ERROR_")]
+	public errordomain ControlError {
+		INVALID_ACTION,
+		INVALID_ARGS,
+		OUT_OF_SYNC,
+		ACTION_FAILED;
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libgupnp/gupnp.h", cprefix = "GUPNP_EVENTING_ERROR_")]
+	public errordomain EventingError {
+		SUBSCRIPTION_FAILED,
+		SUBSCRIPTION_LOST,
+		NOTIFY_FAILED;
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libgupnp/gupnp.h", cprefix = "GUPNP_SERVER_ERROR_")]
+	public errordomain ServerError {
+		INTERNAL_SERVER_ERROR,
+		NOT_FOUND,
+		NOT_IMPLEMENTED,
+		INVALID_RESPONSE,
+		INVALID_URL,
+		OTHER;
+		public static GLib.Quark quark ();
+	}
+	[CCode (cheader_filename = "libgupnp/gupnp.h", cprefix = "GUPNP_XML_ERROR_")]
+	public errordomain XMLError {
+		PARSE,
+		NO_NODE,
+		EMPTY_NODE,
+		INVALID_ATTRIBUTE,
+		OTHER;
+		public static GLib.Quark quark ();
+	}
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]