gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) 2004 Wim Taymans <wim@fluendo.com>
|
2011-03-16 09:50:39 +00:00
|
|
|
* Copyright (C) 2011 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
*
|
|
|
|
* gstiterator.h: Header for GstIterator
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_ITERATOR_H__
|
|
|
|
#define __GST_ITERATOR_H__
|
|
|
|
|
2005-05-09 06:21:10 +00:00
|
|
|
#include <glib-object.h> /* for GValue in the fold */
|
2005-08-08 13:55:37 +00:00
|
|
|
#include <gst/gstconfig.h>
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2011-01-08 14:27:55 +00:00
|
|
|
#define GST_TYPE_ITERATOR (gst_iterator_get_type ())
|
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GstIteratorResult:
|
|
|
|
* @GST_ITERATOR_DONE: No more items in the iterator
|
|
|
|
* @GST_ITERATOR_OK: An item was retrieved
|
|
|
|
* @GST_ITERATOR_RESYNC: Datastructure changed while iterating
|
|
|
|
* @GST_ITERATOR_ERROR: An error happened
|
|
|
|
*
|
|
|
|
* The result of gst_iterator_next().
|
|
|
|
*/
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
typedef enum {
|
2005-10-28 16:21:29 +00:00
|
|
|
GST_ITERATOR_DONE = 0,
|
|
|
|
GST_ITERATOR_OK = 1,
|
|
|
|
GST_ITERATOR_RESYNC = 2,
|
2006-07-06 09:21:03 +00:00
|
|
|
GST_ITERATOR_ERROR = 3
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
} GstIteratorResult;
|
|
|
|
|
|
|
|
typedef struct _GstIterator GstIterator;
|
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GstIteratorItem:
|
|
|
|
* @GST_ITERATOR_ITEM_SKIP: Skip this item
|
|
|
|
* @GST_ITERATOR_ITEM_PASS: Return item
|
|
|
|
* @GST_ITERATOR_ITEM_END: Stop after this item.
|
|
|
|
*
|
2008-08-29 17:58:25 +00:00
|
|
|
* The result of a #GstIteratorItemFunction.
|
2005-10-28 16:21:29 +00:00
|
|
|
*/
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
typedef enum {
|
2005-10-28 16:21:29 +00:00
|
|
|
GST_ITERATOR_ITEM_SKIP = 0,
|
|
|
|
GST_ITERATOR_ITEM_PASS = 1,
|
2006-07-06 09:21:03 +00:00
|
|
|
GST_ITERATOR_ITEM_END = 2
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
} GstIteratorItem;
|
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
2011-03-16 09:50:39 +00:00
|
|
|
* GstIteratorCopyFunction:
|
|
|
|
* @it: The original iterator
|
|
|
|
* @copy: The copied iterator
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
2011-03-16 09:50:39 +00:00
|
|
|
* This function will be called when creating a copy of @it and should
|
|
|
|
* create a copy of all custom iterator fields or increase their
|
|
|
|
* reference counts.
|
2005-10-28 16:21:29 +00:00
|
|
|
*/
|
2011-03-16 09:50:39 +00:00
|
|
|
typedef void (*GstIteratorCopyFunction) (const GstIterator *it, GstIterator *copy);
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
2011-03-16 09:50:39 +00:00
|
|
|
* GstIteratorItemFunction:
|
2005-10-28 16:21:29 +00:00
|
|
|
* @it: the iterator
|
2011-03-16 09:50:39 +00:00
|
|
|
* @item: the item being retrieved.
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
2011-03-16 09:50:39 +00:00
|
|
|
* The function that will be called after the next item of the iterator
|
|
|
|
* has been retrieved. This function can be used to skip items or stop
|
|
|
|
* the iterator.
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
|
|
|
* The function will be called with the iterator lock held.
|
|
|
|
*
|
|
|
|
* Returns: the result of the operation.
|
|
|
|
*/
|
2011-03-16 09:50:39 +00:00
|
|
|
typedef GstIteratorItem (*GstIteratorItemFunction) (GstIterator *it, const GValue * item);
|
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
2011-03-16 09:50:39 +00:00
|
|
|
* GstIteratorNextFunction:
|
2005-10-28 16:21:29 +00:00
|
|
|
* @it: the iterator
|
2011-03-16 09:50:39 +00:00
|
|
|
* @result: a pointer to hold the next item
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
2011-03-16 09:50:39 +00:00
|
|
|
* The function that will be called when the next element of the iterator
|
|
|
|
* should be retrieved.
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
|
|
|
* Implementors of a #GstIterator should implement this
|
|
|
|
* function and pass it to the constructor of the custom iterator.
|
|
|
|
* The function will be called with the iterator lock held.
|
|
|
|
*
|
|
|
|
* Returns: the result of the operation.
|
|
|
|
*/
|
2011-03-16 09:50:39 +00:00
|
|
|
typedef GstIteratorResult (*GstIteratorNextFunction) (GstIterator *it, GValue *result);
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GstIteratorResyncFunction:
|
|
|
|
* @it: the iterator
|
|
|
|
*
|
|
|
|
* This function will be called whenever a concurrent update happened
|
|
|
|
* to the iterated datastructure. The implementor of the iterator should
|
|
|
|
* restart the iterator from the beginning and clean up any state it might
|
|
|
|
* have.
|
|
|
|
*
|
|
|
|
* Implementors of a #GstIterator should implement this
|
|
|
|
* function and pass it to the constructor of the custom iterator.
|
|
|
|
* The function will be called with the iterator lock held.
|
|
|
|
*/
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
typedef void (*GstIteratorResyncFunction) (GstIterator *it);
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GstIteratorFreeFunction:
|
|
|
|
* @it: the iterator
|
|
|
|
*
|
|
|
|
* This function will be called when the iterator is freed.
|
|
|
|
*
|
|
|
|
* Implementors of a #GstIterator should implement this
|
|
|
|
* function and pass it to the constructor of the custom iterator.
|
|
|
|
* The function will be called with the iterator lock held.
|
|
|
|
*/
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
typedef void (*GstIteratorFreeFunction) (GstIterator *it);
|
|
|
|
|
2011-03-16 09:50:39 +00:00
|
|
|
/**
|
|
|
|
* GstIteratorForeachFunction:
|
|
|
|
* @item: The item
|
|
|
|
* @user_data: User data
|
|
|
|
*
|
|
|
|
* A function that is called by gst_iterator_foreach() for every element.
|
|
|
|
*/
|
|
|
|
typedef void (*GstIteratorForeachFunction) (const GValue * item, gpointer user_data);
|
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GstIteratorFoldFunction:
|
|
|
|
* @item: the item to fold
|
2008-08-29 17:58:25 +00:00
|
|
|
* @ret: a #GValue collecting the result
|
2006-01-27 22:34:51 +00:00
|
|
|
* @user_data: data passed to gst_iterator_fold()
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
2006-01-27 22:34:51 +00:00
|
|
|
* A function to be passed to gst_iterator_fold().
|
2005-10-28 16:21:29 +00:00
|
|
|
*
|
|
|
|
* Returns: TRUE if the fold should continue, FALSE if it should stop.
|
|
|
|
*/
|
2011-03-16 09:50:39 +00:00
|
|
|
typedef gboolean (*GstIteratorFoldFunction) (const GValue * item, GValue * ret, gpointer user_data);
|
2009-08-26 14:39:19 +00:00
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GST_ITERATOR:
|
|
|
|
* @it: the #GstIterator value
|
|
|
|
*
|
|
|
|
* Macro to cast to a #GstIterator
|
|
|
|
*/
|
2005-06-27 14:40:09 +00:00
|
|
|
#define GST_ITERATOR(it) ((GstIterator*)(it))
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GST_ITERATOR_LOCK:
|
|
|
|
* @it: the #GstIterator to get the lock of
|
|
|
|
*
|
|
|
|
* Macro to get the lock protecting the datastructure being iterated.
|
|
|
|
*/
|
2005-06-27 14:40:09 +00:00
|
|
|
#define GST_ITERATOR_LOCK(it) (GST_ITERATOR(it)->lock)
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GST_ITERATOR_COOKIE:
|
|
|
|
* @it: the #GstIterator to get the cookie of
|
|
|
|
*
|
|
|
|
* Macro to get the cookie of a #GstIterator. The cookie of the
|
|
|
|
* iterator is the value of the master cookie when the iterator
|
|
|
|
* was created.
|
|
|
|
* Whenever the iterator is iterated, the value is compared to the
|
|
|
|
* value of the master cookie. If they are different, a concurrent
|
|
|
|
* modification happened to the iterator and a resync is needed.
|
|
|
|
*/
|
2005-06-27 14:40:09 +00:00
|
|
|
#define GST_ITERATOR_COOKIE(it) (GST_ITERATOR(it)->cookie)
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GST_ITERATOR_ORIG_COOKIE:
|
|
|
|
* @it: the #GstIterator to get the master cookie of
|
|
|
|
*
|
|
|
|
* Macro to get a pointer to where the master cookie is stored. The
|
|
|
|
* master cookie protects the structure being iterated and gets updated
|
|
|
|
* whenever the datastructure changes.
|
|
|
|
*/
|
2005-06-27 14:40:09 +00:00
|
|
|
#define GST_ITERATOR_ORIG_COOKIE(it) (GST_ITERATOR(it)->master_cookie)
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
|
2005-10-28 16:21:29 +00:00
|
|
|
/**
|
|
|
|
* GstIterator:
|
|
|
|
* @next: The function to get the next item in the iterator
|
|
|
|
* @item: The function to be called for each item retrieved
|
|
|
|
* @resync: The function to call when a resync is needed.
|
|
|
|
* @free: The function to call when the iterator is freed
|
|
|
|
* @pushed: The iterator that is currently pushed with gst_iterator_push()
|
|
|
|
* @type: The type of the object that this iterator will return
|
|
|
|
* @lock: The lock protecting the data structure and the cookie.
|
|
|
|
* @cookie: The cookie; the value of the master_cookie when this iterator was
|
|
|
|
* created.
|
|
|
|
* @master_cookie: A pointer to the master cookie.
|
|
|
|
*
|
2008-08-29 17:58:25 +00:00
|
|
|
* #GstIterator base structure. The values of this structure are
|
2005-10-28 16:21:29 +00:00
|
|
|
* protected for subclasses, use the methods to use the #GstIterator.
|
|
|
|
*/
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
struct _GstIterator {
|
2005-10-28 16:21:29 +00:00
|
|
|
/*< protected >*/
|
2011-03-16 09:50:39 +00:00
|
|
|
GstIteratorCopyFunction copy;
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
GstIteratorNextFunction next;
|
|
|
|
GstIteratorItemFunction item;
|
|
|
|
GstIteratorResyncFunction resync;
|
|
|
|
GstIteratorFreeFunction free;
|
|
|
|
|
|
|
|
GstIterator *pushed; /* pushed iterator */
|
|
|
|
|
2005-10-07 00:14:45 +00:00
|
|
|
GType type;
|
2005-06-27 14:40:09 +00:00
|
|
|
GMutex *lock;
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
guint32 cookie; /* cookie of the iterator */
|
|
|
|
guint32 *master_cookie; /* pointer to guint32 holding the cookie when this
|
|
|
|
iterator was created */
|
2011-01-08 14:07:55 +00:00
|
|
|
guint size;
|
2005-08-08 13:31:09 +00:00
|
|
|
|
|
|
|
/*< private >*/
|
2011-03-16 09:50:39 +00:00
|
|
|
gpointer _gst_reserved[GST_PADDING];
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
};
|
2005-06-27 14:40:09 +00:00
|
|
|
|
2011-01-08 14:27:55 +00:00
|
|
|
GType gst_iterator_get_type (void);
|
|
|
|
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
/* creating iterators */
|
2005-06-27 14:40:09 +00:00
|
|
|
GstIterator* gst_iterator_new (guint size,
|
2005-10-07 00:14:45 +00:00
|
|
|
GType type,
|
2005-06-27 14:40:09 +00:00
|
|
|
GMutex *lock,
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
guint32 *master_cookie,
|
2011-03-16 09:50:39 +00:00
|
|
|
GstIteratorCopyFunction copy,
|
2005-06-27 14:40:09 +00:00
|
|
|
GstIteratorNextFunction next,
|
2011-03-16 09:50:39 +00:00
|
|
|
GstIteratorItemFunction item,
|
2005-06-27 14:40:09 +00:00
|
|
|
GstIteratorResyncFunction resync,
|
|
|
|
GstIteratorFreeFunction free);
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
|
2011-03-16 09:50:39 +00:00
|
|
|
GstIterator* gst_iterator_new_list (GType type,
|
2005-10-07 00:14:45 +00:00
|
|
|
GMutex *lock,
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
guint32 *master_cookie,
|
|
|
|
GList **list,
|
2011-03-16 09:50:39 +00:00
|
|
|
GObject * owner,
|
|
|
|
GstIteratorItemFunction item);
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
|
2009-08-26 14:39:19 +00:00
|
|
|
GstIterator* gst_iterator_new_single (GType type,
|
2011-03-16 09:50:39 +00:00
|
|
|
const GValue * object);
|
|
|
|
|
|
|
|
GstIterator* gst_iterator_copy (const GstIterator *it);
|
2009-08-26 14:39:19 +00:00
|
|
|
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
/* using iterators */
|
2011-03-16 09:50:39 +00:00
|
|
|
GstIteratorResult gst_iterator_next (GstIterator *it, GValue * elem);
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
void gst_iterator_resync (GstIterator *it);
|
|
|
|
void gst_iterator_free (GstIterator *it);
|
|
|
|
|
|
|
|
void gst_iterator_push (GstIterator *it, GstIterator *other);
|
|
|
|
|
|
|
|
/* higher-order functions that operate on iterators */
|
|
|
|
GstIterator* gst_iterator_filter (GstIterator *it, GCompareFunc func,
|
2011-03-16 09:50:39 +00:00
|
|
|
const GValue * user_data);
|
2005-11-09 15:31:08 +00:00
|
|
|
GstIteratorResult gst_iterator_fold (GstIterator *it,
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
GstIteratorFoldFunction func,
|
|
|
|
GValue *ret, gpointer user_data);
|
2005-11-09 15:31:08 +00:00
|
|
|
GstIteratorResult gst_iterator_foreach (GstIterator *it,
|
2011-03-16 09:50:39 +00:00
|
|
|
GstIteratorForeachFunction func, gpointer user_data);
|
|
|
|
gboolean gst_iterator_find_custom (GstIterator *it, GCompareFunc func,
|
|
|
|
GValue *elem, gpointer user_data);
|
gst/gstiterator.*: Added missing files.
Original commit message from CVS:
* gst/gstiterator.c: (gst_iterator_init), (gst_iterator_new),
(gst_list_iterator_next), (gst_list_iterator_resync),
(gst_list_iterator_free), (gst_iterator_new_list),
(gst_iterator_pop), (gst_iterator_next), (gst_iterator_resync),
(gst_iterator_free), (gst_iterator_push), (filter_next),
(filter_resync), (filter_uninit), (filter_free),
(gst_iterator_filter), (gst_iterator_fold), (foreach_fold_func),
(gst_iterator_foreach), (find_custom_fold_func),
(gst_iterator_find_custom):
* gst/gstiterator.h:
Added missing files.
2005-03-07 18:29:36 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_ITERATOR_H__ */
|