[farsight2/master] Add error domain for simple igd
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:25:01 PST 2008
---
gst-libs/ext/fsupnp/fs-upnp-simple-igd.c | 6 ++++++
gst-libs/ext/fsupnp/fs-upnp-simple-igd.h | 9 +++++++++
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c b/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c
index f342454..d4b3ed3 100644
--- a/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c
+++ b/gst-libs/ext/fsupnp/fs-upnp-simple-igd.c
@@ -137,6 +137,12 @@ static void fs_upnp_simple_igd_remove_port_real (FsUpnpSimpleIgd *self,
const gchar *protocol,
guint external_port);
+GQuark
+fs_upnp_simple_igd_get_error_domain (void)
+{
+ return g_quark_from_static_string ("fs-upnp-simple-igd-error");
+}
+
static void
fs_upnp_simple_igd_class_init (FsUpnpSimpleIgdClass *klass)
diff --git a/gst-libs/ext/fsupnp/fs-upnp-simple-igd.h b/gst-libs/ext/fsupnp/fs-upnp-simple-igd.h
index d0c753e..3f6dc7e 100644
--- a/gst-libs/ext/fsupnp/fs-upnp-simple-igd.h
+++ b/gst-libs/ext/fsupnp/fs-upnp-simple-igd.h
@@ -92,6 +92,15 @@ struct _FsUpnpSimpleIgd
FsUpnpSimpleIgdPrivate *priv;
};
+#define FS_UPNP_SIMPLE_IGD_ERROR (fs_upnp_simple_igd_get_error_domain ())
+
+typedef enum {
+ FS_UPNP_SIMPLE_IGD_ERROR_EXTERNAL_ADDRESS,
+ FS_UPNP_SIMPLE_IGD_ERROR_TIMEOUT
+} FsUpnpSimpleIgdError;
+
+GQuark fs_upnp_simple_igd_get_error_domain (void);
+
GType fs_upnp_simple_igd_get_type (void);
FsUpnpSimpleIgd *
--
1.5.6.5
More information about the farsight-commits
mailing list