collectpads: clean up header indentation

This commit is contained in:
Wim Taymans 2012-09-11 16:09:37 +02:00
parent e85dc9cfc8
commit 5ff4bb3e7c

View file

@ -116,7 +116,7 @@ typedef enum {
struct _GstCollectData struct _GstCollectData
{ {
/* with STREAM_LOCK of @collect */ /* with STREAM_LOCK of @collect */
GstCollectPads *collect; GstCollectPads *collect;
GstPad *pad; GstPad *pad;
GstBuffer *buffer; GstBuffer *buffer;
guint pos; guint pos;
@ -157,7 +157,7 @@ typedef GstFlowReturn (*GstCollectPadsFunction) (GstCollectPads *pads, gpointer
* Returns: #GST_FLOW_OK for success * Returns: #GST_FLOW_OK for success
*/ */
typedef GstFlowReturn (*GstCollectPadsBufferFunction) (GstCollectPads *pads, GstCollectData *data, typedef GstFlowReturn (*GstCollectPadsBufferFunction) (GstCollectPads *pads, GstCollectData *data,
GstBuffer *buffer, gpointer user_data); GstBuffer *buffer, gpointer user_data);
/** /**
* GstCollectPadsCompareFunction: * GstCollectPadsCompareFunction:
@ -175,9 +175,9 @@ typedef GstFlowReturn (*GstCollectPadsBufferFunction) (GstCollectPads *pads, Gst
* Integer greate than zero when second timestamp is deemed older than the first one. * Integer greate than zero when second timestamp is deemed older than the first one.
*/ */
typedef gint (*GstCollectPadsCompareFunction) (GstCollectPads *pads, typedef gint (*GstCollectPadsCompareFunction) (GstCollectPads *pads,
GstCollectData * data1, GstClockTime timestamp1, GstCollectData * data1, GstClockTime timestamp1,
GstCollectData * data2, GstClockTime timestamp2, GstCollectData * data2, GstClockTime timestamp2,
gpointer user_data); gpointer user_data);
/** /**
* GstCollectPadsEventFunction: * GstCollectPadsEventFunction:
@ -194,7 +194,7 @@ typedef gint (*GstCollectPadsCompareFunction) (GstCollectPads *pads,
* Returns: %TRUE if the pad could handle the event * Returns: %TRUE if the pad could handle the event
*/ */
typedef gboolean (*GstCollectPadsEventFunction) (GstCollectPads *pads, GstCollectData * pad, typedef gboolean (*GstCollectPadsEventFunction) (GstCollectPads *pads, GstCollectData * pad,
GstEvent * event, gpointer user_data); GstEvent * event, gpointer user_data);
/** /**
@ -211,7 +211,7 @@ typedef gboolean (*GstCollectPadsEventFunction) (GstCollectPads *pads, Gs
* Returns: %TRUE if the pad could handle the event * Returns: %TRUE if the pad could handle the event
*/ */
typedef gboolean (*GstCollectPadsQueryFunction) (GstCollectPads *pads, GstCollectData * pad, typedef gboolean (*GstCollectPadsQueryFunction) (GstCollectPads *pads, GstCollectData * pad,
GstQuery * query, gpointer user_data); GstQuery * query, gpointer user_data);
/** /**
* GstCollectPadsClipFunction: * GstCollectPadsClipFunction:
@ -233,8 +233,8 @@ typedef gboolean (*GstCollectPadsQueryFunction) (GstCollectPads *pads, Gs
* Returns: a #GstFlowReturn that corresponds to the result of clipping. * Returns: a #GstFlowReturn that corresponds to the result of clipping.
*/ */
typedef GstFlowReturn (*GstCollectPadsClipFunction) (GstCollectPads *pads, GstCollectData *data, typedef GstFlowReturn (*GstCollectPadsClipFunction) (GstCollectPads *pads, GstCollectData *data,
GstBuffer *inbuffer, GstBuffer **outbuffer, GstBuffer *inbuffer, GstBuffer **outbuffer,
gpointer user_data); gpointer user_data);
/** /**
* GST_COLLECT_PADS_GET_STREAM_LOCK: * GST_COLLECT_PADS_GET_STREAM_LOCK:
@ -294,29 +294,29 @@ GstCollectPads* gst_collect_pads_new (void);
/* set the callbacks */ /* set the callbacks */
void gst_collect_pads_set_function (GstCollectPads *pads, void gst_collect_pads_set_function (GstCollectPads *pads,
GstCollectPadsFunction func, GstCollectPadsFunction func,
gpointer user_data); gpointer user_data);
void gst_collect_pads_set_buffer_function (GstCollectPads *pads, void gst_collect_pads_set_buffer_function (GstCollectPads *pads,
GstCollectPadsBufferFunction func, GstCollectPadsBufferFunction func,
gpointer user_data); gpointer user_data);
void gst_collect_pads_set_event_function (GstCollectPads *pads, void gst_collect_pads_set_event_function (GstCollectPads *pads,
GstCollectPadsEventFunction func, GstCollectPadsEventFunction func,
gpointer user_data); gpointer user_data);
void gst_collect_pads_set_query_function (GstCollectPads *pads, void gst_collect_pads_set_query_function (GstCollectPads *pads,
GstCollectPadsQueryFunction func, GstCollectPadsQueryFunction func,
gpointer user_data); gpointer user_data);
void gst_collect_pads_set_compare_function (GstCollectPads *pads, void gst_collect_pads_set_compare_function (GstCollectPads *pads,
GstCollectPadsCompareFunction func, GstCollectPadsCompareFunction func,
gpointer user_data); gpointer user_data);
void gst_collect_pads_set_clip_function (GstCollectPads *pads, void gst_collect_pads_set_clip_function (GstCollectPads *pads,
GstCollectPadsClipFunction clipfunc, GstCollectPadsClipFunction clipfunc,
gpointer user_data); gpointer user_data);
/* pad management */ /* pad management */
GstCollectData* gst_collect_pads_add_pad (GstCollectPads *pads, GstPad *pad, guint size); GstCollectData* gst_collect_pads_add_pad (GstCollectPads *pads, GstPad *pad, guint size);
GstCollectData* gst_collect_pads_add_pad_full (GstCollectPads *pads, GstPad *pad, guint size, GstCollectData* gst_collect_pads_add_pad_full (GstCollectPads *pads, GstPad *pad, guint size,
GstCollectDataDestroyNotify destroy_notify, GstCollectDataDestroyNotify destroy_notify,
gboolean lock); gboolean lock);
gboolean gst_collect_pads_remove_pad (GstCollectPads *pads, GstPad *pad); gboolean gst_collect_pads_remove_pad (GstCollectPads *pads, GstPad *pad);
/* start/stop collection */ /* start/stop collection */
@ -331,26 +331,27 @@ GstBuffer* gst_collect_pads_pop (GstCollectPads *pads, GstCollect
/* get collected bytes */ /* get collected bytes */
guint gst_collect_pads_available (GstCollectPads *pads); guint gst_collect_pads_available (GstCollectPads *pads);
guint gst_collect_pads_flush (GstCollectPads *pads, GstCollectData *data, guint gst_collect_pads_flush (GstCollectPads *pads, GstCollectData *data,
guint size); guint size);
GstBuffer* gst_collect_pads_read_buffer (GstCollectPads * pads, GstCollectData * data, GstBuffer* gst_collect_pads_read_buffer (GstCollectPads * pads, GstCollectData * data,
guint size); guint size);
GstBuffer* gst_collect_pads_take_buffer (GstCollectPads * pads, GstCollectData * data, GstBuffer* gst_collect_pads_take_buffer (GstCollectPads * pads, GstCollectData * data,
guint size); guint size);
/* setting and unsetting waiting mode */ /* setting and unsetting waiting mode */
void gst_collect_pads_set_waiting (GstCollectPads *pads, GstCollectData *data, void gst_collect_pads_set_waiting (GstCollectPads *pads, GstCollectData *data,
gboolean waiting); gboolean waiting);
/* convenience helper */ /* convenience helper */
GstFlowReturn gst_collect_pads_clip_running_time (GstCollectPads * pads, GstFlowReturn gst_collect_pads_clip_running_time (GstCollectPads * pads,
GstCollectData * cdata, GstBuffer * buf, GstBuffer ** outbuf, GstCollectData * cdata,
gpointer user_data); GstBuffer * buf, GstBuffer ** outbuf,
gpointer user_data);
/* default handlers */ /* default handlers */
gboolean gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data, gboolean gst_collect_pads_event_default (GstCollectPads * pads, GstCollectData * data,
GstEvent * event, gboolean discard); GstEvent * event, gboolean discard);
gboolean gst_collect_pads_query_default (GstCollectPads * pads, GstCollectData * data, gboolean gst_collect_pads_query_default (GstCollectPads * pads, GstCollectData * data,
GstQuery * query, gboolean discard); GstQuery * query, gboolean discard);
G_END_DECLS G_END_DECLS