[farsight2/master] Add FsStream error enum
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:19:08 PST 2008
---
gst-libs/gst/farsight/fs-stream.c | 7 +++++++
gst-libs/gst/farsight/fs-stream.h | 19 +++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/gst-libs/gst/farsight/fs-stream.c b/gst-libs/gst/farsight/fs-stream.c
index 3eae44c..dd74ca5 100644
--- a/gst-libs/gst/farsight/fs-stream.c
+++ b/gst-libs/gst/farsight/fs-stream.c
@@ -101,6 +101,13 @@ static void fs_stream_set_property (GObject *object,
static GObjectClass *parent_class = NULL;
static guint signals[LAST_SIGNAL] = { 0 };
+GQuark
+fs_stream_error_quark (void)
+{
+ return g_quark_from_static_string ("fs-stream-error");
+}
+
+
GType
fs_stream_get_type (void)
{
diff --git a/gst-libs/gst/farsight/fs-stream.h b/gst-libs/gst/farsight/fs-stream.h
index 7acfca5..9178381 100644
--- a/gst-libs/gst/farsight/fs-stream.h
+++ b/gst-libs/gst/farsight/fs-stream.h
@@ -72,6 +72,25 @@ typedef struct _FsStream FsStream;
typedef struct _FsStreamClass FsStreamClass;
typedef struct _FsStreamPrivate FsStreamPrivate;
+
+/**
+ * FsStreamError:
+ * @FS_STREAM_ERROR_CONSTRUCTION: Error constructing some of the sub-elements
+ * @FS_STREAM_ERROR_INVALID_ARGUMENTS: Invalid arguments to the function
+ *
+ * This is the enum of error numbers that will come either on the "error" signal
+ * or from the Gst Bus.
+ */
+
+typedef enum {
+ FS_STREAM_ERROR_CONSTRUCTION,
+ FS_STREAM_ERROR_INVALID_ARGUMENTS
+} FsStreamError;
+
+#define FS_STREAM_ERROR (fs_stream_error_quark ())
+
+GQuark fs_stream_error_quark (void);
+
struct _FsStreamClass
{
GObjectClass parent_class;
--
1.5.6.5
More information about the farsight-commits
mailing list