projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bin: Fix minor race when adding to a bin
[platform/upstream/gstreamer.git]
/
gst
/
gstpadtemplate.h
diff --git
a/gst/gstpadtemplate.h
b/gst/gstpadtemplate.h
index
77dc8a1
..
fb15c40
100644
(file)
--- a/
gst/gstpadtemplate.h
+++ b/
gst/gstpadtemplate.h
@@
-178,8
+178,14
@@
struct _GstStaticPadTemplate {
* @pres: the GstPadPresence of the pad
* @caps: the GstStaticCaps of the pad
*
* @pres: the GstPadPresence of the pad
* @caps: the GstStaticCaps of the pad
*
- * Convenience macro to fill the values of a GstStaticPadTemplate
+ * Convenience macro to fill the values of a
#
GstStaticPadTemplate
* structure.
* structure.
+ * Example:
+ * |[<!-- language="C" -->
+ * static GstStaticPadTemplate my_src_template = \
+ * GST_STATIC_PAD_TEMPLATE("src", GST_PAD_SRC, GST_PAD_ALWAYS,
+ * GST_STATIC_CAPS_ANY);
+ * ]|
*/
#define GST_STATIC_PAD_TEMPLATE(padname, dir, pres, caps) \
{ \
*/
#define GST_STATIC_PAD_TEMPLATE(padname, dir, pres, caps) \
{ \
@@
-191,31
+197,35
@@
struct _GstStaticPadTemplate {
/* templates and factories */
/* templates and factories */
-GST_
EXPORT
+GST_
API
GType gst_pad_template_get_type (void);
GType gst_pad_template_get_type (void);
-GST_
EXPORT
+GST_
API
GType gst_static_pad_template_get_type (void);
GType gst_static_pad_template_get_type (void);
-GST_
EXPORT
+GST_
API
GstPadTemplate* gst_pad_template_new (const gchar *name_template,
GstPadDirection direction, GstPadPresence presence,
GstCaps *caps) G_GNUC_MALLOC;
GstPadTemplate* gst_pad_template_new (const gchar *name_template,
GstPadDirection direction, GstPadPresence presence,
GstCaps *caps) G_GNUC_MALLOC;
-GST_EXPORT
+GST_API
+GstPadTemplate* gst_pad_template_new_with_gtype (const gchar *name_template,
+ GstPadDirection direction, GstPadPresence presence,
+ GstCaps *caps, GType pad_type) G_GNUC_MALLOC;
+GST_API
GstPadTemplate * gst_static_pad_template_get (GstStaticPadTemplate *pad_template);
GstPadTemplate * gst_static_pad_template_get (GstStaticPadTemplate *pad_template);
-GST_
EXPORT
+GST_
API
GstPadTemplate * gst_pad_template_new_from_static_pad_template_with_gtype (
GstStaticPadTemplate * pad_template,
GType pad_type);
GstPadTemplate * gst_pad_template_new_from_static_pad_template_with_gtype (
GstStaticPadTemplate * pad_template,
GType pad_type);
-GST_
EXPORT
+GST_
API
GstCaps* gst_static_pad_template_get_caps (GstStaticPadTemplate *templ);
GstCaps* gst_static_pad_template_get_caps (GstStaticPadTemplate *templ);
-GST_
EXPORT
+GST_
API
GstCaps* gst_pad_template_get_caps (GstPadTemplate *templ);
GstCaps* gst_pad_template_get_caps (GstPadTemplate *templ);
-GST_
EXPORT
+GST_
API
void gst_pad_template_pad_created (GstPadTemplate * templ, GstPad * pad);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
void gst_pad_template_pad_created (GstPadTemplate * templ, GstPad * pad);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC