Moved the typedef to gsttypes.h as stock rh 7.2 gcc doesn't seem to like it otherwise.

Original commit message from CVS:
Moved the typedef to gsttypes.h as stock rh 7.2 gcc doesn't seem to like
it otherwise.
This commit is contained in:
Wim Taymans 2001-12-19 01:50:11 +00:00
parent eb45d89cfb
commit 2c9d646895
2 changed files with 14 additions and 19 deletions

View file

@ -38,23 +38,6 @@ extern "C" {
#define GST_NUM_STATES 4
//typedef enum _GstElementState GstElementState;
//typedef enum _GstElementStateReturn GstElementStateReturn;
enum _GstElementState {
GST_STATE_VOID_PENDING = 0,
GST_STATE_NULL = (1 << 0),
GST_STATE_READY = (1 << 1),
GST_STATE_PAUSED = (1 << 2),
GST_STATE_PLAYING = (1 << 3),
};
enum _GstElementStateReturn {
GST_STATE_FAILURE = 0,
GST_STATE_SUCCESS = 1,
GST_STATE_ASYNC = 2,
};
/* NOTE: this probably should be done with an #ifdef to decide
* whether to safe-cast or to just do the non-checking cast.

View file

@ -15,7 +15,19 @@ typedef struct _GstScheduler GstScheduler;
typedef struct _GstSchedulerClass GstSchedulerClass;
typedef struct _GstEvent GstEvent;
typedef enum _GstElementState GstElementState;
typedef enum _GstElementStateReturn GstElementStateReturn;
typedef enum {
GST_STATE_VOID_PENDING = 0,
GST_STATE_NULL = (1 << 0),
GST_STATE_READY = (1 << 1),
GST_STATE_PAUSED = (1 << 2),
GST_STATE_PLAYING = (1 << 3),
} GstElementState;
typedef enum {
GST_STATE_FAILURE = 0,
GST_STATE_SUCCESS = 1,
GST_STATE_ASYNC = 2,
} GstElementStateReturn;
#endif