mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
gst/gsterror.h: include the headers needed for declarations used in this header
Original commit message from CVS: * gst/gsterror.h: include the headers needed for declarations used in this header
This commit is contained in:
parent
3ddd9e7894
commit
1cc1827392
2 changed files with 23 additions and 15 deletions
|
@ -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 <stephane.loeuillet@tiscali.fr>
|
2004-04-30 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
|
||||||
|
|
||||||
* docs/random/uraeus/gstreamer_and_midi.txt :
|
* docs/random/uraeus/gstreamer_and_midi.txt :
|
||||||
|
|
|
@ -20,8 +20,11 @@
|
||||||
#ifndef __GST_ERROR_H__
|
#ifndef __GST_ERROR_H__
|
||||||
#define __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:
|
* we define FIXME error domains:
|
||||||
* GST_CORE_ERROR
|
* GST_CORE_ERROR
|
||||||
|
@ -31,12 +34,12 @@ G_BEGIN_DECLS
|
||||||
*
|
*
|
||||||
* Check GError API docs for rationale for naming.
|
* Check GError API docs for rationale for naming.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Core errors are anything that can go wrong in or using
|
/* Core errors are anything that can go wrong in or using
|
||||||
* the core GStreamer library */
|
* the core GStreamer library */
|
||||||
/* FIXME: should we divide in numerical blocks so we can easily add
|
/* FIXME: should we divide in numerical blocks so we can easily add
|
||||||
for example PAD errors later ? */
|
for example PAD errors later ? */
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
GST_CORE_ERROR_FAILED = 1,
|
GST_CORE_ERROR_FAILED = 1,
|
||||||
GST_CORE_ERROR_TOO_LAZY,
|
GST_CORE_ERROR_TOO_LAZY,
|
||||||
GST_CORE_ERROR_NOT_IMPLEMENTED,
|
GST_CORE_ERROR_NOT_IMPLEMENTED,
|
||||||
|
@ -55,7 +58,8 @@ GstCoreError;
|
||||||
|
|
||||||
/* Library errors are for errors from the library being used by elements
|
/* Library errors are for errors from the library being used by elements
|
||||||
initializing, closing, ... */
|
initializing, closing, ... */
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
GST_LIBRARY_ERROR_FAILED = 1,
|
GST_LIBRARY_ERROR_FAILED = 1,
|
||||||
GST_LIBRARY_ERROR_TOO_LAZY,
|
GST_LIBRARY_ERROR_TOO_LAZY,
|
||||||
GST_LIBRARY_ERROR_INIT,
|
GST_LIBRARY_ERROR_INIT,
|
||||||
|
@ -69,7 +73,8 @@ GstLibraryError;
|
||||||
/* Resource errors are for anything external used by an element:
|
/* Resource errors are for anything external used by an element:
|
||||||
memory, files, network connections, process space, ...
|
memory, files, network connections, process space, ...
|
||||||
They're typically used by source and sink elements */
|
They're typically used by source and sink elements */
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
GST_RESOURCE_ERROR_FAILED = 1,
|
GST_RESOURCE_ERROR_FAILED = 1,
|
||||||
GST_RESOURCE_ERROR_TOO_LAZY,
|
GST_RESOURCE_ERROR_TOO_LAZY,
|
||||||
GST_RESOURCE_ERROR_NOT_FOUND,
|
GST_RESOURCE_ERROR_NOT_FOUND,
|
||||||
|
@ -90,7 +95,8 @@ GstResourceError;
|
||||||
/* Stream errors are for anything related to the stream being processed:
|
/* Stream errors are for anything related to the stream being processed:
|
||||||
format errors, media type errors, ...
|
format errors, media type errors, ...
|
||||||
They're typically used by decoders, demuxers, converters, ... */
|
They're typically used by decoders, demuxers, converters, ... */
|
||||||
typedef enum {
|
typedef enum
|
||||||
|
{
|
||||||
GST_STREAM_ERROR_FAILED = 1,
|
GST_STREAM_ERROR_FAILED = 1,
|
||||||
GST_STREAM_ERROR_TOO_LAZY,
|
GST_STREAM_ERROR_TOO_LAZY,
|
||||||
GST_STREAM_ERROR_NOT_IMPLEMENTED,
|
GST_STREAM_ERROR_NOT_IMPLEMENTED,
|
||||||
|
@ -116,15 +122,12 @@ GstStreamError;
|
||||||
|
|
||||||
#define GST_ERROR_SYSTEM ("system error: %s", g_strerror (errno))
|
#define GST_ERROR_SYSTEM ("system error: %s", g_strerror (errno))
|
||||||
|
|
||||||
GType gst_g_error_get_type (void);
|
GType gst_g_error_get_type (void);
|
||||||
gchar * gst_error_get_message (GQuark domain, gint code);
|
gchar *gst_error_get_message (GQuark domain, gint code);
|
||||||
GQuark gst_stream_error_quark (void);
|
GQuark gst_stream_error_quark (void);
|
||||||
GQuark gst_core_error_quark (void);
|
GQuark gst_core_error_quark (void);
|
||||||
GQuark gst_resource_error_quark (void);
|
GQuark gst_resource_error_quark (void);
|
||||||
GQuark gst_library_error_quark (void);
|
GQuark gst_library_error_quark (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_ERROR_H__ */
|
#endif /* __GST_ERROR_H__ */
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue