From d13ce8b7e856a3ed9c8840ddb168e14f6d85e0ce Mon Sep 17 00:00:00 2001 From: Evan Nemerson Date: Tue, 12 Jun 2012 11:42:30 -0700 Subject: [PATCH] introspection: add some missing annotations --- gst/gstbin.h | 4 ++-- gst/gstclock.h | 1 + gst/gstelement.h | 6 +++--- gst/gstobject.c | 6 +++--- gst/gstpadtemplate.h | 2 ++ 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/gst/gstbin.h b/gst/gstbin.h index 19c7634..6ff4247 100644 --- a/gst/gstbin.h +++ b/gst/gstbin.h @@ -81,10 +81,10 @@ typedef struct _GstBinPrivate GstBinPrivate; /** * GstBin: * @numchildren: the number of children in this bin - * @children: the list of children in this bin + * @children: (element-type Gst.Element): the list of children in this bin * @children_cookie: updated whenever @children changes * @child_bus: internal bus for handling child messages - * @messages: queued and cached messages + * @messages: (element-type Gst.Message): queued and cached messages * @polling: the bin is currently calculating its state * @state_dirty: the bin needs to recalculate its state (deprecated) * @clock_dirty: the bin needs to select a new clock diff --git a/gst/gstclock.h b/gst/gstclock.h index 253fc09..de6faaa 100644 --- a/gst/gstclock.h +++ b/gst/gstclock.h @@ -362,6 +362,7 @@ struct _GstClockEntry { gboolean unscheduled; gboolean woken_up; + /*< private >*/ gpointer _gst_reserved[GST_PADDING]; }; diff --git a/gst/gstelement.h b/gst/gstelement.h index b396934..ea2b310 100644 --- a/gst/gstelement.h +++ b/gst/gstelement.h @@ -532,11 +532,11 @@ G_STMT_START { \ * state will yield the running_time against the clock. * @start_time: the running_time of the last PAUSED state * @numpads: number of pads of the element, includes both source and sink pads. - * @pads: list of pads + * @pads: (element-type Gst.Pad): list of pads * @numsrcpads: number of source pads of the element. - * @srcpads: list of source pads + * @srcpads: (element-type Gst.Pad): list of source pads * @numsinkpads: number of sink pads of the element. - * @sinkpads: list of sink pads + * @sinkpads: (element-type Gst.Pad): list of sink pads * @pads_cookie: updated whenever the a pad is added or removed * * GStreamer element abstract base class. diff --git a/gst/gstobject.c b/gst/gstobject.c index e8d4880..09835d9 100644 --- a/gst/gstobject.c +++ b/gst/gstobject.c @@ -229,7 +229,7 @@ gst_object_init (GstObject * object) /** * gst_object_ref: - * @object: a #GstObject to reference + * @object: (type Gst.Object): a #GstObject to reference * * Increments the reference count on @object. This function * does not take the lock on @object because it relies on @@ -239,7 +239,7 @@ gst_object_init (GstObject * object) * constructs like : * result = gst_object_ref (object->parent); * - * Returns: (transfer full): A pointer to @object + * Returns: (transfer full) (type Gst.Object): A pointer to @object */ gpointer gst_object_ref (gpointer object) @@ -257,7 +257,7 @@ gst_object_ref (gpointer object) /** * gst_object_unref: - * @object: a #GstObject to unreference + * @object: (type Gst.Object): a #GstObject to unreference * * Decrements the reference count on @object. If reference count hits * zero, destroy @object. This function does not take the lock diff --git a/gst/gstpadtemplate.h b/gst/gstpadtemplate.h index 7bbbf16..90f9b25 100644 --- a/gst/gstpadtemplate.h +++ b/gst/gstpadtemplate.h @@ -126,6 +126,7 @@ struct _GstPadTemplate { GstPadPresence presence; GstCaps *caps; + /*< private >*/ gpointer _gst_reserved[GST_PADDING]; }; @@ -135,6 +136,7 @@ struct _GstPadTemplateClass { /* signal callbacks */ void (*pad_created) (GstPadTemplate *templ, GstPad *pad); + /*< private >*/ gpointer _gst_reserved[GST_PADDING]; }; -- 2.7.4