2 * Copyright (C) 1999,2000 Erik Walthinsen <omega@cse.ogi.edu>
3 * 2000 Wim Taymans <wim.taymans@chello.be>
5 * gstpad.h: Header for GstPad object
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
27 #include <gst/gstconfig.h>
29 #include <gst/gstobject.h>
30 #include <gst/gstbuffer.h>
31 #include <gst/gstcaps.h>
32 #include <gst/gstevent.h>
33 #include <gst/gstprobe.h>
34 #include <gst/gstquery.h>
39 extern GType _gst_pad_type;
40 extern GType _gst_real_pad_type;
41 extern GType _gst_ghost_pad_type;
43 #define GST_TYPE_PARANOID
48 #define GST_TYPE_PAD (_gst_pad_type)
50 #define GST_PAD_CAST(obj) ((GstPad*)(obj))
51 #define GST_PAD_CLASS_CAST(klass) ((GstPadClass*)(klass))
52 #define GST_IS_PAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PAD))
53 #define GST_IS_PAD_FAST(obj) (G_OBJECT_TYPE(obj) == GST_TYPE_REAL_PAD || \
54 G_OBJECT_TYPE(obj) == GST_TYPE_GHOST_PAD)
55 #define GST_IS_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PAD))
57 #ifdef GST_TYPE_PARANOID
58 # define GST_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD, GstPad))
59 # define GST_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD, GstPadClass))
61 # define GST_PAD GST_PAD_CAST
62 # define GST_PAD_CLASS GST_PAD_CLASS_CAST
68 #define GST_TYPE_REAL_PAD (_gst_real_pad_type)
70 #define GST_REAL_PAD_CAST(obj) ((GstRealPad*)(obj))
71 #define GST_REAL_PAD_CLASS_CAST(klass) ((GstRealPadClass*)(klass))
72 #define GST_IS_REAL_PAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_REAL_PAD))
73 #define GST_IS_REAL_PAD_FAST(obj) (G_OBJECT_TYPE(obj) == GST_TYPE_REAL_PAD)
74 #define GST_IS_REAL_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_REAL_PAD))
76 #ifdef GST_TYPE_PARANOID
77 # define GST_REAL_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_REAL_PAD, GstRealPad))
78 # define GST_REAL_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_REAL_PAD, GstRealPadClass))
80 # define GST_REAL_PAD GST_REAL_PAD_CAST
81 # define GST_REAL_PAD_CLASS GST_REAL_PAD_CLASS_CAST
87 #define GST_TYPE_GHOST_PAD (_gst_ghost_pad_type)
89 #define GST_GHOST_PAD_CAST(obj) ((GstGhostPad*)(obj))
90 #define GST_GHOST_PAD_CLASS_CAST(klass) ((GstGhostPadClass*)(klass))
91 #define GST_IS_GHOST_PAD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_GHOST_PAD))
92 #define GST_IS_GHOST_PAD_FAST(obj) (G_OBJECT_TYPE(obj) == GST_TYPE_GHOST_PAD)
93 #define GST_IS_GHOST_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_GHOST_PAD))
95 #ifdef GST_TYPE_PARANOID
96 # define GST_GHOST_PAD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_GHOST_PAD, GstGhostPad))
97 # define GST_GHOST_PAD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_GHOST_PAD, GstGhostPadClass))
99 # define GST_GHOST_PAD GST_GHOST_PAD_CAST
100 # define GST_GHOST_PAD_CLASS GST_GHOST_PAD_CLASS_CAST
104 /*typedef struct _GstPad GstPad; */
105 /*typedef struct _GstPadClass GstPadClass;*/
106 typedef struct _GstRealPad GstRealPad;
107 typedef struct _GstRealPadClass GstRealPadClass;
108 typedef struct _GstGhostPad GstGhostPad;
109 typedef struct _GstGhostPadClass GstGhostPadClass;
110 /*typedef struct _GstPadTemplate GstPadTemplate;*/
111 /*typedef struct _GstPadTemplateClass GstPadTemplateClass;*/
115 GST_PAD_LINK_REFUSED = -1,
116 GST_PAD_LINK_DELAYED = 0,
118 GST_PAD_LINK_DONE = 2
121 /* convenience functions */
122 #ifdef G_HAVE_ISO_VARARGS
123 #define GST_PAD_QUERY_TYPE_FUNCTION(functionname, ...) GST_QUERY_TYPE_FUNCTION (GstPad *, functionname, __VA_ARGS__);
124 #define GST_PAD_FORMATS_FUNCTION(functionname, ...) GST_FORMATS_FUNCTION (GstPad *, functionname, __VA_ARGS__);
125 #define GST_PAD_EVENT_MASK_FUNCTION(functionname, ...) GST_EVENT_MASK_FUNCTION (GstPad *, functionname, __VA_ARGS__);
126 #elif defined(G_HAVE_GNUC_VARARGS)
127 #define GST_PAD_QUERY_TYPE_FUNCTION(functionname, a...) GST_QUERY_TYPE_FUNCTION (GstPad *, functionname, a);
128 #define GST_PAD_FORMATS_FUNCTION(functionname, a...) GST_FORMATS_FUNCTION (GstPad *, functionname, a);
129 #define GST_PAD_EVENT_MASK_FUNCTION(functionname, a...) GST_EVENT_MASK_FUNCTION (GstPad *, functionname, a);
133 /* this defines the functions used to chain buffers
134 * pad is the sink pad (so the same chain function can be used for N pads)
135 * buf is the buffer being passed */
136 typedef void (*GstPadChainFunction) (GstPad *pad,GstBuffer *buf);
137 typedef GstBuffer* (*GstPadGetFunction) (GstPad *pad);
138 typedef gboolean (*GstPadEventFunction) (GstPad *pad, GstEvent *event);
139 typedef gboolean (*GstPadConvertFunction) (GstPad *pad,
140 GstFormat src_format, gint64 src_value,
141 GstFormat *dest_format, gint64 *dest_value);
142 typedef gboolean (*GstPadQueryFunction) (GstPad *pad, GstQueryType type,
143 GstFormat *format, gint64 *value);
144 typedef GList* (*GstPadIntLinkFunction) (GstPad *pad);
145 typedef const GstFormat* (*GstPadFormatsFunction) (GstPad *pad);
146 typedef const GstEventMask* (*GstPadEventMaskFunction) (GstPad *pad);
147 typedef const GstQueryType* (*GstPadQueryTypeFunction) (GstPad *pad);
149 typedef GstPadLinkReturn (*GstPadLinkFunction) (GstPad *pad, GstCaps *caps);
150 typedef GstCaps* (*GstPadGetCapsFunction) (GstPad *pad, GstCaps *caps);
151 typedef GstBufferPool* (*GstPadBufferPoolFunction) (GstPad *pad);
153 typedef gboolean (*GstPadDispatcherFunction) (GstPad *pad, gpointer data);
162 GST_PAD_DISABLED = GST_OBJECT_FLAG_LAST,
165 GST_PAD_FLAG_LAST = GST_OBJECT_FLAG_LAST + 4
171 gpointer element_private;
173 GstPadTemplate *padtemplate; /* the template for this pad */
176 struct _GstPadClass {
177 GstObjectClass parent_class;
183 /* the pad capabilities */
187 GstPadGetCapsFunction getcapsfunc;
189 GstPadDirection direction;
191 GstPadLinkFunction linkfunc;
194 gpointer sched_private;
196 /* data transport functions */
197 GstPadChainFunction chainfunc;
198 GstPadChainFunction chainhandler;
199 GstPadGetFunction getfunc;
200 GstPadGetFunction gethandler;
201 GstPadEventFunction eventfunc;
202 GstPadEventFunction eventhandler;
203 GstPadEventMaskFunction eventmaskfunc;
207 /* query/convert/formats functions */
208 GstPadConvertFunction convertfunc;
209 GstPadQueryFunction queryfunc;
210 GstPadFormatsFunction formatsfunc;
211 GstPadQueryTypeFunction querytypefunc;
212 GstPadIntLinkFunction intlinkfunc;
214 GstPadBufferPoolFunction bufferpoolfunc;
216 GstProbeDispatcher probedisp;
219 struct _GstRealPadClass {
220 GstPadClass parent_class;
222 /* signal callbacks */
223 void (*caps_nego_failed) (GstPad *pad, GstCaps *caps);
225 void (*linked) (GstPad *pad, GstPad *peer);
226 void (*unlinked) (GstPad *pad, GstPad *peer);
229 struct _GstGhostPad {
235 struct _GstGhostPadClass {
236 GstPadClass parent_class;
240 /***** helper macros *****/
242 #define GST_PAD_NAME(pad) (GST_OBJECT_NAME(pad))
243 #define GST_PAD_PARENT(pad) ((GstElement *)(GST_OBJECT_PARENT(pad)))
244 #define GST_PAD_ELEMENT_PRIVATE(pad) (((GstPad *)(pad))->element_private)
245 #define GST_PAD_PAD_TEMPLATE(pad) (((GstPad *)(pad))->padtemplate)
248 #define GST_RPAD_DIRECTION(pad) (((GstRealPad *)(pad))->direction)
249 #define GST_RPAD_CAPS(pad) (((GstRealPad *)(pad))->caps)
250 #define GST_RPAD_FILTER(pad) (((GstRealPad *)(pad))->filter)
251 #define GST_RPAD_APPFILTER(pad) (((GstRealPad *)(pad))->appfilter)
252 #define GST_RPAD_PEER(pad) (((GstRealPad *)(pad))->peer)
253 #define GST_RPAD_CHAINFUNC(pad) (((GstRealPad *)(pad))->chainfunc)
254 #define GST_RPAD_CHAINHANDLER(pad) (((GstRealPad *)(pad))->chainhandler)
255 #define GST_RPAD_GETFUNC(pad) (((GstRealPad *)(pad))->getfunc)
256 #define GST_RPAD_GETHANDLER(pad) (((GstRealPad *)(pad))->gethandler)
257 #define GST_RPAD_EVENTFUNC(pad) (((GstRealPad *)(pad))->eventfunc)
258 #define GST_RPAD_EVENTHANDLER(pad) (((GstRealPad *)(pad))->eventhandler)
259 #define GST_RPAD_CONVERTFUNC(pad) (((GstRealPad *)(pad))->convertfunc)
260 #define GST_RPAD_QUERYFUNC(pad) (((GstRealPad *)(pad))->queryfunc)
261 #define GST_RPAD_INTLINKFUNC(pad) (((GstRealPad *)(pad))->intlinkfunc)
262 #define GST_RPAD_FORMATSFUNC(pad) (((GstRealPad *)(pad))->formatsfunc)
263 #define GST_RPAD_QUERYTYPEFUNC(pad) (((GstRealPad *)(pad))->querytypefunc)
264 #define GST_RPAD_EVENTMASKFUNC(pad) (((GstRealPad *)(pad))->eventmaskfunc)
266 #define GST_RPAD_LINKFUNC(pad) (((GstRealPad *)(pad))->linkfunc)
267 #define GST_RPAD_GETCAPSFUNC(pad) (((GstRealPad *)(pad))->getcapsfunc)
268 #define GST_RPAD_BUFFERPOOLFUNC(pad) (((GstRealPad *)(pad))->bufferpoolfunc)
271 #define GST_GPAD_REALPAD(pad) (((GstGhostPad *)(pad))->realpad)
274 #define GST_PAD_REALIZE(pad) (GST_IS_REAL_PAD(pad) ? ((GstRealPad *)(pad)) : GST_GPAD_REALPAD(pad))
275 #define GST_PAD_DIRECTION(pad) GST_RPAD_DIRECTION(GST_PAD_REALIZE(pad))
276 #define GST_PAD_CAPS(pad) GST_RPAD_CAPS(GST_PAD_REALIZE(pad))
277 #define GST_PAD_PEER(pad) GST_PAD_CAST(GST_RPAD_PEER(GST_PAD_REALIZE(pad)))
279 /* Some check functions (unused?) */
280 #define GST_PAD_IS_LINKED(pad) (GST_PAD_PEER(pad) != NULL)
281 #define GST_PAD_IS_ACTIVE(pad) (!GST_FLAG_IS_SET(GST_PAD_REALIZE(pad), GST_PAD_DISABLED))
282 #define GST_PAD_IS_USABLE(pad) (GST_PAD_IS_LINKED (pad) && \
283 GST_PAD_IS_ACTIVE(pad) && GST_PAD_IS_ACTIVE(GST_PAD_PEER (pad)))
284 #define GST_PAD_CAN_PULL(pad) (GST_IS_REAL_PAD(pad) && GST_REAL_PAD(pad)->gethandler != NULL)
285 #define GST_PAD_IS_SRC(pad) (GST_PAD_DIRECTION(pad) == GST_PAD_SRC)
286 #define GST_PAD_IS_SINK(pad) (GST_PAD_DIRECTION(pad) == GST_PAD_SINK)
288 /***** PadTemplate *****/
289 #define GST_TYPE_PAD_TEMPLATE (gst_pad_template_get_type ())
290 #define GST_PAD_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_PAD_TEMPLATE,GstPadTemplate))
291 #define GST_PAD_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PAD_TEMPLATE,GstPadTemplateClass))
292 #define GST_IS_PAD_TEMPLATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_PAD_TEMPLATE))
293 #define GST_IS_PAD_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_PAD_TEMPLATE))
301 #define GST_PAD_TEMPLATE_NAME_TEMPLATE(templ) (((GstPadTemplate *)(templ))->name_template)
302 #define GST_PAD_TEMPLATE_DIRECTION(templ) (((GstPadTemplate *)(templ))->direction)
303 #define GST_PAD_TEMPLATE_PRESENCE(templ) (((GstPadTemplate *)(templ))->presence)
304 #define GST_PAD_TEMPLATE_CAPS(templ) (((GstPadTemplate *)(templ))->caps)
307 GST_PAD_TEMPLATE_FIXED = GST_OBJECT_FLAG_LAST,
309 GST_PAD_TEMPLATE_FLAG_LAST = GST_OBJECT_FLAG_LAST + 4
310 } GstPadTemplateFlags;
312 #define GST_PAD_TEMPLATE_IS_FIXED(templ) (GST_FLAG_IS_SET(templ, GST_PAD_TEMPLATE_FIXED))
314 struct _GstPadTemplate {
317 gchar *name_template;
318 GstPadDirection direction;
319 GstPadPresence presence;
323 struct _GstPadTemplateClass {
324 GstObjectClass parent_class;
326 /* signal callbacks */
327 void (*pad_created) (GstPadTemplate *templ, GstPad *pad);
330 #ifdef G_HAVE_ISO_VARARGS
331 #define GST_PAD_TEMPLATE_NEW(padname, dir, pres, ...) \
332 gst_pad_template_new ( \
339 #define GST_PAD_TEMPLATE_FACTORY(name, padname, dir, pres, ...) \
340 static GstPadTemplate* \
343 static GstPadTemplate *templ = NULL; \
345 templ = GST_PAD_TEMPLATE_NEW ( \
353 #elif defined(G_HAVE_GNUC_VARARGS)
354 /* CR1: the space after 'a' is necessary because of preprocessing in gcc */
355 #define GST_PAD_TEMPLATE_NEW(padname, dir, pres, a...) \
356 gst_pad_template_new ( \
363 #define GST_PAD_TEMPLATE_FACTORY(name, padname, dir, pres, a...) \
364 static GstPadTemplate* \
367 static GstPadTemplate *templ = NULL; \
369 templ = GST_PAD_TEMPLATE_NEW ( \
379 #define GST_PAD_TEMPLATE_GET(fact) (fact)()
381 GType gst_pad_get_type (void);
382 GType gst_real_pad_get_type (void);
383 GType gst_ghost_pad_get_type (void);
386 GstPad* gst_pad_new (const gchar *name, GstPadDirection direction);
387 GstPad* gst_pad_new_from_template (GstPadTemplate *templ, const gchar *name);
388 GstPad* gst_pad_custom_new (GType type, const gchar *name, GstPadDirection direction);
389 GstPad* gst_pad_custom_new_from_template (GType type, GstPadTemplate *templ, const gchar *name);
391 void gst_pad_set_name (GstPad *pad, const gchar *name);
392 const gchar* gst_pad_get_name (GstPad *pad);
394 GstPadDirection gst_pad_get_direction (GstPad *pad);
396 void gst_pad_set_active (GstPad *pad, gboolean active);
397 gboolean gst_pad_is_active (GstPad *pad);
399 void gst_pad_set_element_private (GstPad *pad, gpointer priv);
400 gpointer gst_pad_get_element_private (GstPad *pad);
402 void gst_pad_set_parent (GstPad *pad, GstElement *parent);
403 GstElement* gst_pad_get_parent (GstPad *pad);
404 GstElement* gst_pad_get_real_parent (GstPad *pad);
406 GstScheduler* gst_pad_get_scheduler (GstPad *pad);
408 void gst_pad_add_ghost_pad (GstPad *pad, GstPad *ghostpad);
409 void gst_pad_remove_ghost_pad (GstPad *pad, GstPad *ghostpad);
410 GList* gst_pad_get_ghost_pad_list (GstPad *pad);
412 GstPadTemplate* gst_pad_get_pad_template (GstPad *pad);
414 void gst_pad_set_bufferpool_function (GstPad *pad, GstPadBufferPoolFunction bufpool);
415 GstBufferPool* gst_pad_get_bufferpool (GstPad *pad);
417 /* data passing setup functions */
418 void gst_pad_set_chain_function (GstPad *pad, GstPadChainFunction chain);
419 void gst_pad_set_get_function (GstPad *pad, GstPadGetFunction get);
420 void gst_pad_set_event_function (GstPad *pad, GstPadEventFunction event);
421 void gst_pad_set_event_mask_function (GstPad *pad, GstPadEventMaskFunction mask_func);
422 const GstEventMask* gst_pad_get_event_masks (GstPad *pad);
423 const GstEventMask* gst_pad_get_event_masks_default (GstPad *pad);
426 void gst_pad_set_link_function (GstPad *pad, GstPadLinkFunction link);
427 gboolean gst_pad_can_link (GstPad *srcpad, GstPad *sinkpad);
428 gboolean gst_pad_can_link_filtered (GstPad *srcpad, GstPad *sinkpad, GstCaps *filtercaps);
430 gboolean gst_pad_link (GstPad *srcpad, GstPad *sinkpad);
431 gboolean gst_pad_link_filtered (GstPad *srcpad, GstPad *sinkpad, GstCaps *filtercaps);
432 void gst_pad_unlink (GstPad *srcpad, GstPad *sinkpad);
434 GstPad* gst_pad_get_peer (GstPad *pad);
436 /* capsnego functions */
437 GstCaps* gst_pad_get_caps (GstPad *pad);
438 GstCaps* gst_pad_get_pad_template_caps (GstPad *pad);
439 GstPadLinkReturn gst_pad_try_set_caps (GstPad *pad, GstCaps *caps);
440 gboolean gst_pad_check_compatibility (GstPad *srcpad, GstPad *sinkpad);
442 void gst_pad_set_getcaps_function (GstPad *pad, GstPadGetCapsFunction getcaps);
443 GstPadLinkReturn gst_pad_proxy_link (GstPad *pad, GstCaps *caps);
444 gboolean gst_pad_relink_filtered (GstPad *srcpad, GstPad *sinkpad, GstCaps *filtercaps);
445 gboolean gst_pad_perform_negotiate (GstPad *srcpad, GstPad *sinkpad);
446 gboolean gst_pad_try_relink_filtered (GstPad *srcpad, GstPad *sinkpad, GstCaps *filtercaps);
447 GstCaps* gst_pad_get_allowed_caps (GstPad *pad);
448 gboolean gst_pad_recalc_allowed_caps (GstPad *pad);
450 gboolean gst_pad_recover_caps_error (GstPad *pad, GstCaps *allowed);
452 /* data passing functions */
453 void gst_pad_push (GstPad *pad, GstBuffer *buf);
454 GstBuffer* gst_pad_pull (GstPad *pad);
455 gboolean gst_pad_send_event (GstPad *pad, GstEvent *event);
456 gboolean gst_pad_event_default (GstPad *pad, GstEvent *event);
457 GstPad* gst_pad_select (GList *padlist);
458 GstPad* gst_pad_selectv (GstPad *pad, ...);
461 /* convert/query/format functions */
462 void gst_pad_set_formats_function (GstPad *pad,
463 GstPadFormatsFunction formats);
464 const GstFormat* gst_pad_get_formats (GstPad *pad);
465 const GstFormat* gst_pad_get_formats_default (GstPad *pad);
467 void gst_pad_set_convert_function (GstPad *pad, GstPadConvertFunction convert);
468 gboolean gst_pad_convert (GstPad *pad,
469 GstFormat src_format, gint64 src_value,
470 GstFormat *dest_format, gint64 *dest_value);
471 gboolean gst_pad_convert_default (GstPad *pad,
472 GstFormat src_format, gint64 src_value,
473 GstFormat *dest_format, gint64 *dest_value);
475 void gst_pad_set_query_function (GstPad *pad, GstPadQueryFunction query);
476 void gst_pad_set_query_type_function (GstPad *pad, GstPadQueryTypeFunction type_func);
477 const GstQueryType* gst_pad_get_query_types (GstPad *pad);
478 const GstQueryType* gst_pad_get_query_types_default (GstPad *pad);
479 gboolean gst_pad_query (GstPad *pad, GstQueryType type,
480 GstFormat *format, gint64 *value);
481 gboolean gst_pad_query_default (GstPad *pad, GstQueryType type,
482 GstFormat *format, gint64 *value);
484 void gst_pad_set_internal_link_function (GstPad *pad, GstPadIntLinkFunction intlink);
485 GList* gst_pad_get_internal_links (GstPad *pad);
486 GList* gst_pad_get_internal_links_default (GstPad *pad);
488 /* misc helper functions */
489 gboolean gst_pad_dispatcher (GstPad *pad, GstPadDispatcherFunction dispatch,
492 #define gst_pad_add_probe(pad, probe) \
493 (gst_probe_dispatcher_add_probe (&(GST_REAL_PAD (pad)->probedisp), probe))
494 #define gst_pad_remove_probe(pad, probe) \
495 (gst_probe_dispatcher_remove_probe (&(GST_REAL_PAD (pad)->probedisp), probe))
497 #ifndef GST_DISABLE_LOADSAVE
498 void gst_pad_load_and_link (xmlNodePtr self, GstObject *parent);
503 GstPad* gst_ghost_pad_new (const gchar *name, GstPad *pad);
506 /* templates and factories */
507 GType gst_pad_template_get_type (void);
509 GstPadTemplate* gst_pad_template_new (const gchar *name_template,
510 GstPadDirection direction, GstPadPresence presence,
513 GstCaps* gst_pad_template_get_caps (GstPadTemplate *templ);
514 GstCaps* gst_pad_template_get_caps_by_name (GstPadTemplate *templ, const gchar *name);
516 #ifndef GST_DISABLE_LOADSAVE
517 xmlNodePtr gst_ghost_pad_save_thyself (GstPad *pad,
524 #endif /* __GST_PAD_H__ */