X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Fgstbufferlist.h;h=df8c455e77038d730262e74814e15cfac4590c2a;hb=e10266e3f3cf9b05b69198b1ac6faa9a62840e30;hp=7275dad098efa4e848698ad81eea29f3b7568e6e;hpb=43538e2e75b4bdc5fc71a62b472a4b223472c059;p=platform%2Fupstream%2Fgstreamer.git diff --git a/gst/gstbufferlist.h b/gst/gstbufferlist.h index 7275dad..df8c455 100644 --- a/gst/gstbufferlist.h +++ b/gst/gstbufferlist.h @@ -16,8 +16,8 @@ * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #ifndef __GST_BUFFER_LIST_H__ @@ -27,7 +27,7 @@ G_BEGIN_DECLS -extern GType _gst_buffer_list_type; +GST_EXPORT GType _gst_buffer_list_type; #define GST_TYPE_BUFFER_LIST (_gst_buffer_list_type) #define GST_IS_BUFFER_LIST(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_BUFFER_LIST)) @@ -48,7 +48,7 @@ typedef struct _GstBufferList GstBufferList; * When this function returns %TRUE, the next buffer will be * returned. When %FALSE is returned, gst_buffer_list_foreach() will return. * - * When @buffer is set to NULL, the item will be removed from the bufferlist. + * When @buffer is set to %NULL, the item will be removed from the bufferlist. * When @buffer has been made writable, the new buffer reference can be assigned * to @buffer. This function is responsible for unreffing the old buffer when * removing or modifying. @@ -66,14 +66,12 @@ typedef gboolean (*GstBufferListFunc) (GstBuffer **buffer, guint idx, * * Increases the refcount of the given buffer list by one. * - * Note that the refcount affects the writeability of @list and its data, see + * Note that the refcount affects the writability of @list and its data, see * gst_buffer_list_make_writable(). It is important to note that keeping * additional references to GstBufferList instances can potentially increase * the number of memcpy operations in a pipeline. * * Returns: (transfer full): @list - * - * Since: 0.10.24 */ #ifdef _FOOL_GTK_DOC_ G_INLINE_FUNC GstBufferList * gst_buffer_list_ref (GstBufferList * list); @@ -92,8 +90,6 @@ gst_buffer_list_ref (GstBufferList * list) * * Decreases the refcount of the buffer list. If the refcount reaches 0, the * buffer list will be freed. - * - * Since: 0.10.24 */ #ifdef _FOOL_GTK_DOC_ G_INLINE_FUNC void gst_buffer_list_unref (GstBufferList * list); @@ -115,8 +111,6 @@ gst_buffer_list_unref (GstBufferList * list) * refcount of buffers pointed to will be increased by one. * * Returns: (transfer full): a new copy of @list. - * - * Since: 0.10.24 */ #ifdef _FOOL_GTK_DOC_ G_INLINE_FUNC GstBufferList * gst_buffer_list_copy (const GstBufferList * list); @@ -133,8 +127,6 @@ gst_buffer_list_copy (const GstBufferList * list) * @list: a #GstBufferList * * Tests if you can safely add buffers and groups into a buffer list. - * - * Since: 0.10.24 */ #define gst_buffer_list_is_writable(list) gst_mini_object_is_writable (GST_MINI_OBJECT_CAST (list)) @@ -148,24 +140,22 @@ gst_buffer_list_copy (const GstBufferList * list) * * Returns: (transfer full): a writable list, which may or may not be the * same as @list - * - * Since: 0.10.24 */ #define gst_buffer_list_make_writable(list) GST_BUFFER_LIST_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (list))) GType gst_buffer_list_get_type (void); /* allocation */ -GstBufferList * gst_buffer_list_new (void); -GstBufferList * gst_buffer_list_sized_new (guint size); +GstBufferList * gst_buffer_list_new (void) G_GNUC_MALLOC; +GstBufferList * gst_buffer_list_new_sized (guint size) G_GNUC_MALLOC; -guint gst_buffer_list_len (GstBufferList *list); +guint gst_buffer_list_length (GstBufferList *list); GstBuffer * gst_buffer_list_get (GstBufferList *list, guint idx); -void gst_buffer_list_insert (GstBufferList *list, guint idx, GstBuffer *buffer); +void gst_buffer_list_insert (GstBufferList *list, gint idx, GstBuffer *buffer); void gst_buffer_list_remove (GstBufferList *list, guint idx, guint length); -void gst_buffer_list_foreach (GstBufferList *list, +gboolean gst_buffer_list_foreach (GstBufferList *list, GstBufferListFunc func, gpointer user_data);