summaryrefslogtreecommitdiff
path: root/gst/gsterror.h
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-09 14:44:36 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-09 14:44:36 +0000
commitdeb1c93227bfc5be05236701c8f68e774b50e04e (patch)
tree64820faa4fdcf507a0547d0aa005209cc22eea9c /gst/gsterror.h
parente36f583babe905deae7d2ddc059f9b71b886670f (diff)
downloadgstreamer-deb1c93227bfc5be05236701c8f68e774b50e04e.tar.gz
add GstGError to help the bindings
Original commit message from CVS: add GstGError to help the bindings
Diffstat (limited to 'gst/gsterror.h')
-rw-r--r--gst/gsterror.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/gst/gsterror.h b/gst/gsterror.h
index 2ac5aa69fd..c1c96e8bac 100644
--- a/gst/gsterror.h
+++ b/gst/gsterror.h
@@ -53,9 +53,6 @@ typedef enum {
}
GstCoreError;
-#define GST_CORE_ERROR gst_core_error_quark ()
-GQuark gst_core_error_quark (void);
-
/* Library errors are for errors from the library being used by elements
initializing, closing, ... */
typedef enum {
@@ -69,10 +66,6 @@ typedef enum {
}
GstLibraryError;
-#define GST_LIBRARY_ERROR gst_library_error_quark ()
-GQuark gst_library_error_quark (void);
-
-
/* Resource errors are for anything external used by an element:
memory, files, network connections, process space, ...
They're typically used by source and sink elements */
@@ -94,9 +87,6 @@ typedef enum {
}
GstResourceError;
-#define GST_RESOURCE_ERROR gst_resource_error_quark ()
-GQuark gst_resource_error_quark (void);
-
/* Stream errors are for anything related to the stream being processed:
format errors, media type errors, ...
They're typically used by decoders, demuxers, converters, ... */
@@ -116,12 +106,22 @@ typedef enum {
}
GstStreamError;
-#define GST_STREAM_ERROR gst_stream_error_quark ()
-GQuark gst_stream_error_quark (void);
+/* This should go away once we convinced glib people to register GError */
+#define GST_TYPE_G_ERROR (gst_g_error_get_type ())
+
+#define GST_LIBRARY_ERROR gst_library_error_quark ()
+#define GST_RESOURCE_ERROR gst_resource_error_quark ()
+#define GST_CORE_ERROR gst_core_error_quark ()
+#define GST_STREAM_ERROR gst_stream_error_quark ()
+#define GST_ERROR_SYSTEM ("system error: %s", g_strerror (errno))
-#define GST_ERROR_SYSTEM ("system error: %s", g_strerror (errno))
-gchar * gst_error_get_message (GQuark domain, gint code);
+GType gst_g_error_get_type (void);
+gchar * gst_error_get_message (GQuark domain, gint code);
+GQuark gst_stream_error_quark (void);
+GQuark gst_core_error_quark (void);
+GQuark gst_resource_error_quark (void);
+GQuark gst_library_error_quark (void);
G_END_DECLS