comment fix whitespace fixes

Original commit message from CVS:
comment fix
whitespace fixes
This commit is contained in:
Thomas Vander Stichele 2004-03-12 17:59:00 +00:00
parent 5d1a30f452
commit e0c63736c6
2 changed files with 34 additions and 34 deletions

View file

@ -2,7 +2,7 @@
* Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu> * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
* 2000 Wim Taymans <wim.taymans@chello.be> * 2000 Wim Taymans <wim.taymans@chello.be>
* *
* gstevent.h: Header for GstEvent subsystem * gstevent.c: GstEvent subsystem
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public * modify it under the terms of the GNU Library General Public

View file

@ -32,6 +32,8 @@
G_BEGIN_DECLS G_BEGIN_DECLS
extern GType _gst_event_type;
typedef enum { typedef enum {
GST_EVENT_UNKNOWN = 0, GST_EVENT_UNKNOWN = 0,
GST_EVENT_EOS = 1, GST_EVENT_EOS = 1,
@ -52,8 +54,6 @@ typedef enum {
GST_EVENT_TAG = 16 GST_EVENT_TAG = 16
} GstEventType; } GstEventType;
extern GType _gst_event_type;
#define GST_EVENT_TRACE_NAME "GstEvent" #define GST_EVENT_TRACE_NAME "GstEvent"
#define GST_TYPE_EVENT (_gst_event_type) #define GST_TYPE_EVENT (_gst_event_type)
@ -74,40 +74,40 @@ extern GType _gst_event_type;
#define GST_SEEK_FLAGS_MASK 0xfff00000 #define GST_SEEK_FLAGS_MASK 0xfff00000
typedef enum { typedef enum {
GST_EVENT_FLAG_NONE = 0, GST_EVENT_FLAG_NONE = 0,
/* indicates negative rates are supported */ /* indicates negative rates are supported */
GST_RATE_FLAG_NEGATIVE = (1 << 1) GST_RATE_FLAG_NEGATIVE = (1 << 1)
} GstEventFlag; } GstEventFlag;
typedef struct typedef struct
{ {
GstEventType type; GstEventType type;
GstEventFlag flags; GstEventFlag flags;
} GstEventMask; } GstEventMask;
#ifndef GST_DISABLE_DEPRECATED #ifndef GST_DISABLE_DEPRECATED
#ifdef G_HAVE_ISO_VARARGS #ifdef G_HAVE_ISO_VARARGS
#define GST_EVENT_MASK_FUNCTION(type,functionname, ...) \ #define GST_EVENT_MASK_FUNCTION(type,functionname, ...) \
static const GstEventMask* \ static const GstEventMask* \
functionname (type pad) \ functionname (type pad) \
{ \ { \
static const GstEventMask masks[] = { \ static const GstEventMask masks[] = { \
__VA_ARGS__, \ __VA_ARGS__, \
{ 0, } \ { 0, } \
}; \ }; \
return masks; \ return masks; \
} }
#elif defined(G_HAVE_GNUC_VARARGS) #elif defined(G_HAVE_GNUC_VARARGS)
#define GST_EVENT_MASK_FUNCTION(type,functionname, a...) \ #define GST_EVENT_MASK_FUNCTION(type,functionname, a...) \
static const GstEventMask* \ static const GstEventMask* \
functionname (type pad) \ functionname (type pad) \
{ \ { \
static const GstEventMask masks[] = { \ static const GstEventMask masks[] = { \
a, \ a, \
{ 0, } \ { 0, } \
}; \ }; \
return masks; \ return masks; \
} }
#endif #endif
#endif #endif
@ -136,7 +136,7 @@ typedef enum {
typedef struct typedef struct
{ {
GstFormat format; GstFormat format;
gint64 value; gint64 value;
} GstFormatValue; } GstFormatValue;
@ -166,22 +166,22 @@ struct _GstEvent {
union { union {
struct { struct {
GstSeekType type; GstSeekType type;
gint64 offset; gint64 offset;
gint64 endoffset; gint64 endoffset;
GstSeekAccuracy accuracy; GstSeekAccuracy accuracy;
} seek; } seek;
struct { struct {
GstFormatValue offsets[8]; GstFormatValue offsets[8];
gint noffsets; gint noffsets;
gboolean new_media; gboolean new_media;
} discont; } discont;
struct { struct {
GstFormat format; GstFormat format;
gint64 value; gint64 value;
} size; } size;
struct { struct {
gdouble value; gdouble value;
} rate; } rate;
struct { struct {
GstStructure *structure; GstStructure *structure;
@ -191,24 +191,24 @@ struct _GstEvent {
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
}; };
void _gst_event_initialize (void); void _gst_event_initialize (void);
GType gst_event_get_type (void); GType gst_event_get_type (void);
GstEvent* gst_event_new (GstEventType type); GstEvent* gst_event_new (GstEventType type);
/* refcounting */ /* refcounting */
#define gst_event_ref(ev) GST_EVENT (gst_data_ref (GST_DATA (ev))) #define gst_event_ref(ev) GST_EVENT (gst_data_ref (GST_DATA (ev)))
#define gst_event_ref_by_count(ev,c) GST_EVENT (gst_data_ref_by_count (GST_DATA (ev), c)) #define gst_event_ref_by_count(ev,c) GST_EVENT (gst_data_ref_by_count (GST_DATA (ev), c))
#define gst_event_unref(ev) gst_data_unref (GST_DATA (ev)) #define gst_event_unref(ev) gst_data_unref (GST_DATA (ev))
/* copy buffer */ /* copy buffer */
#define gst_event_copy(ev) GST_EVENT (gst_data_copy (GST_DATA (ev))) #define gst_event_copy(ev) GST_EVENT (gst_data_copy (GST_DATA (ev)))
gboolean gst_event_masks_contains (const GstEventMask *masks, GstEventMask *mask); gboolean gst_event_masks_contains (const GstEventMask *masks, GstEventMask *mask);
/* seek event */ /* seek event */
GstEvent* gst_event_new_seek (GstSeekType type, gint64 offset); GstEvent* gst_event_new_seek (GstSeekType type, gint64 offset);
GstEvent* gst_event_new_segment_seek (GstSeekType type, gint64 start, gint64 stop); GstEvent* gst_event_new_segment_seek (GstSeekType type, gint64 start, gint64 stop);
/* size events */ /* size events */
@ -218,7 +218,7 @@ GstEvent* gst_event_new_size (GstFormat format, gint64 value);
GstEvent* gst_event_new_discontinuous (gboolean new_media, GstEvent* gst_event_new_discontinuous (gboolean new_media,
GstFormat format1, ...); GstFormat format1, ...);
GstEvent* gst_event_new_discontinuous_valist (gboolean new_media, GstEvent* gst_event_new_discontinuous_valist (gboolean new_media,
GstFormat format1, GstFormat format1,
va_list var_args); va_list var_args);
gboolean gst_event_discont_get_value (GstEvent *event, GstFormat format, gint64 *value); gboolean gst_event_discont_get_value (GstEvent *event, GstFormat format, gint64 *value);