gst: Add an example to GST_STATIC_PAD_TEMPLATE macro

This commit is contained in:
Edward Hervey 2018-05-21 11:16:29 +02:00 committed by Edward Hervey
parent a7456eec0d
commit 580f94ee97

View file

@ -178,8 +178,14 @@ struct _GstStaticPadTemplate {
* @pres: the GstPadPresence of the pad * @pres: the GstPadPresence of the pad
* @caps: the GstStaticCaps 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) \
{ \ { \