From 847e64d8ee9f4afad25141a949844add4043e681 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 27 Mar 2008 19:13:45 +0000 Subject: [PATCH] Expose macro to docs and fix link to it. Original commit message from CVS: * docs/gst/gstreamer-sections.txt: * gst/gstpad.c: * gst/gstpad.h: Expose macro to docs and fix link to it. --- ChangeLog | 7 +++++++ docs/gst/gstreamer-sections.txt | 3 ++- gst/gstpad.c | 2 +- gst/gstpad.h | 6 ++++++ 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 903376551e..977966ed3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-03-27 Stefan Kost + + * docs/gst/gstreamer-sections.txt: + * gst/gstpad.c: + * gst/gstpad.h: + Expose macro to docs and fix link to it. + 2008-03-27 Michael Smith * libs/gst/dataprotocol/dataprotocol.c: diff --git a/docs/gst/gstreamer-sections.txt b/docs/gst/gstreamer-sections.txt index fe6f0d5f83..8da520139c 100644 --- a/docs/gst/gstreamer-sections.txt +++ b/docs/gst/gstreamer-sections.txt @@ -1340,6 +1340,8 @@ gst_pad_stop_task gst_pad_set_active +GST_PAD_CAPS + GST_PAD_GET_STREAM_LOCK GST_PAD_STREAM_LOCK GST_PAD_STREAM_LOCK_FULL @@ -1378,7 +1380,6 @@ GST_PAD_PARENT GST_PAD_ELEMENT_PRIVATE GST_PAD_PAD_TEMPLATE GST_PAD_DIRECTION -GST_PAD_CAPS GST_PAD_PEER GST_PAD_IS_LINKED GST_PAD_IS_SRC diff --git a/gst/gstpad.c b/gst/gstpad.c index 5f66811041..9458321910 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -2038,7 +2038,7 @@ done: * * Gets the capabilities this pad can produce or consume. * Note that this method doesn't necessarily return the caps set by - * gst_pad_set_caps() - use #GST_PAD_CAPS for that instead. + * gst_pad_set_caps() - use GST_PAD_CAPS() for that instead. * gst_pad_get_caps returns all possible caps a pad can operate with, using * the pad's get_caps function; * this returns the pad template caps if not explicitly set. diff --git a/gst/gstpad.h b/gst/gstpad.h index 2adbcc4d35..4c41d96f19 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -647,6 +647,12 @@ struct _GstPadClass { #define GST_PAD_LINKFUNC(pad) (GST_PAD_CAST(pad)->linkfunc) #define GST_PAD_UNLINKFUNC(pad) (GST_PAD_CAST(pad)->unlinkfunc) +/** + * GST_PAD_CAPS: + * @pad: a #GstPad. + * + * The caps for this pad. + */ #define GST_PAD_CAPS(pad) (GST_PAD_CAST(pad)->caps) #define GST_PAD_GETCAPSFUNC(pad) (GST_PAD_CAST(pad)->getcapsfunc) #define GST_PAD_SETCAPSFUNC(pad) (GST_PAD_CAST(pad)->setcapsfunc)