diff options
author | Jens Georg <mail@jensge.org> | 2012-10-24 20:19:57 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-10-24 20:24:00 +0200 |
commit | 578c58e5e5fbee1bf549072ec8791f345018622a (patch) | |
tree | 548bd73cd44d69a8c4de87f8238ecd2ed6325e3e /vala | |
parent | 7e902ea2d3e74ac7b4454911e0deb164a17eefdf (diff) | |
download | gupnp-578c58e5e5fbee1bf549072ec8791f345018622a.tar.gz |
Lower gobject-introspection requirement
Diffstat (limited to 'vala')
-rw-r--r-- | vala/GUPnP-1.0.metadata | 8 | ||||
-rw-r--r-- | vala/gupnp-1.0-custom.vala | 37 |
2 files changed, 45 insertions, 0 deletions
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 (); + } +} |