mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 10:34:11 +00:00
pad: clean up the .h file a bit
This commit is contained in:
parent
4372869e80
commit
0637aa95c5
1 changed files with 7 additions and 11 deletions
18
gst/gstpad.h
18
gst/gstpad.h
|
@ -558,7 +558,6 @@ typedef struct _GstPadTemplate GstPadTemplate;
|
|||
* @linkfunc: function called when pad is linked
|
||||
* @unlinkfunc: function called when pad is unlinked
|
||||
* @peer: the pad this pad is linked to
|
||||
* @sched_private: private storage for the scheduler
|
||||
* @chainfunc: function to chain buffer to pad
|
||||
* @checkgetrangefunc: function to check if pad can operate in pull mode
|
||||
* @getrangefunc: function to get a range of data from a pad
|
||||
|
@ -575,14 +574,14 @@ typedef struct _GstPadTemplate GstPadTemplate;
|
|||
* The #GstPad structure. Use the functions to update the variables.
|
||||
*/
|
||||
struct _GstPad {
|
||||
GstObject object;
|
||||
GstObject object;
|
||||
|
||||
/*< public >*/
|
||||
gpointer element_private;
|
||||
gpointer element_private;
|
||||
|
||||
GstPadTemplate *padtemplate;
|
||||
GstPadTemplate *padtemplate;
|
||||
|
||||
GstPadDirection direction;
|
||||
GstPadDirection direction;
|
||||
|
||||
/*< public >*/ /* with STREAM_LOCK */
|
||||
/* streaming rec_lock */
|
||||
|
@ -604,16 +603,15 @@ struct _GstPad {
|
|||
GstPadAcceptCapsFunction acceptcapsfunc;
|
||||
GstPadFixateCapsFunction fixatecapsfunc;
|
||||
|
||||
GstActivateMode mode;
|
||||
GstPadActivateFunction activatefunc;
|
||||
GstPadActivateModeFunction activatepushfunc;
|
||||
GstPadActivateModeFunction activatepullfunc;
|
||||
|
||||
/* pad link */
|
||||
GstPad *peer;
|
||||
GstPadLinkFunction linkfunc;
|
||||
GstPadUnlinkFunction unlinkfunc;
|
||||
GstPad *peer;
|
||||
|
||||
gpointer sched_private;
|
||||
|
||||
/* data transport functions */
|
||||
GstPadChainFunction chainfunc;
|
||||
|
@ -622,8 +620,6 @@ struct _GstPad {
|
|||
GstPadGetRangeFunction getrangefunc;
|
||||
GstPadEventFunction eventfunc;
|
||||
|
||||
GstActivateMode mode;
|
||||
|
||||
/* generic query method */
|
||||
GstPadQueryTypeFunction querytypefunc;
|
||||
GstPadQueryFunction queryfunc;
|
||||
|
@ -660,7 +656,7 @@ struct _GstPadClass {
|
|||
/* GstPad */
|
||||
#define GST_PAD_NAME(pad) (GST_OBJECT_NAME(pad))
|
||||
#define GST_PAD_PARENT(pad) (GST_ELEMENT_CAST(GST_OBJECT_PARENT(pad)))
|
||||
#define GST_PAD_ELEMENT_PRIVATE(pad) (GST_PAD_CAST(pad)->element_private)
|
||||
#define GST_PAD_ELEMENT_PRIVATE(pad) (GST_PAD_CAST(pad)->element_private)
|
||||
#define GST_PAD_PAD_TEMPLATE(pad) (GST_PAD_CAST(pad)->padtemplate)
|
||||
#define GST_PAD_DIRECTION(pad) (GST_PAD_CAST(pad)->direction)
|
||||
#define GST_PAD_TASK(pad) (GST_PAD_CAST(pad)->task)
|
||||
|
|
Loading…
Reference in a new issue