From: Thomas V. S. <tho...@pd...> - 2004-04-30 17:57:54
|
CVS Root: /cvs/gstreamer Module: gstreamer Changes by: thomasvs Date: Fri Apr 30 2004 10:57:53 PDT Log message: * gst/gsterror.h: include the headers needed for declarations used in this header Modified files: . : ChangeLog gst : gsterror.h Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/ChangeLog.diff?r1=1.494&r2=1.495 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gstreamer/gst/gsterror.h.diff?r1=1.10&r2=1.11 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gstreamer/ChangeLog,v retrieving revision 1.494 retrieving revision 1.495 diff -u -d -r1.494 -r1.495 --- a/ChangeLog 30 Apr 2004 09:57:42 -0000 1.494 +++ b/ChangeLog 30 Apr 2004 17:57:41 -0000 1.495 @@ -1,3 +1,8 @@ +2004-04-30 Thomas Vander Stichele <thomas at apestaart dot org> + + * gst/gsterror.h: + include the headers needed for declarations used in this header 2004-04-30 Stephane Loeuillet <ste...@ti...> * docs/random/uraeus/gstreamer_and_midi.txt : Index: gsterror.h RCS file: /cvs/gstreamer/gstreamer/gst/gsterror.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- a/gsterror.h 15 Mar 2004 14:43:21 -0000 1.10 +++ b/gsterror.h 30 Apr 2004 17:57:41 -0000 1.11 @@ -20,8 +20,11 @@ #ifndef __GST_ERROR_H__ #define __GST_ERROR_H__ -G_BEGIN_DECLS +#include <glib.h> +#include <glib-object.h> +#include <errno.h> +G_BEGIN_DECLS /* * we define FIXME error domains: * GST_CORE_ERROR @@ -31,12 +34,12 @@ * * Check GError API docs for rationale for naming. */ - /* Core errors are anything that can go wrong in or using * the core GStreamer library */ /* FIXME: should we divide in numerical blocks so we can easily add for example PAD errors later ? */ -typedef enum { + typedef enum +{ GST_CORE_ERROR_FAILED = 1, GST_CORE_ERROR_TOO_LAZY, GST_CORE_ERROR_NOT_IMPLEMENTED, @@ -55,7 +58,8 @@ /* Library errors are for errors from the library being used by elements initializing, closing, ... */ +typedef enum GST_LIBRARY_ERROR_FAILED = 1, GST_LIBRARY_ERROR_TOO_LAZY, GST_LIBRARY_ERROR_INIT, @@ -69,7 +73,8 @@ /* 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 */ GST_RESOURCE_ERROR_FAILED = 1, GST_RESOURCE_ERROR_TOO_LAZY, GST_RESOURCE_ERROR_NOT_FOUND, @@ -90,7 +95,8 @@ /* Stream errors are for anything related to the stream being processed: format errors, media type errors, ... They're typically used by decoders, demuxers, converters, ... */ GST_STREAM_ERROR_FAILED = 1, GST_STREAM_ERROR_TOO_LAZY, GST_STREAM_ERROR_NOT_IMPLEMENTED, @@ -116,15 +122,12 @@ #define GST_ERROR_SYSTEM ("system error: %s", g_strerror (errno)) -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); +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 #endif /* __GST_ERROR_H__ */ |