projects
/
platform
/
upstream
/
gstreamer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
latency: Dot not override already stored events
[platform/upstream/gstreamer.git]
/
gst
/
gstiterator.h
diff --git
a/gst/gstiterator.h
b/gst/gstiterator.h
index
2a21f8b
..
2f53507
100644
(file)
--- a/
gst/gstiterator.h
+++ b/
gst/gstiterator.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
*
* 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., 5
9 Temple Place - Suite 330
,
- * Boston, MA 0211
1-1307
, USA.
+ * Free Software Foundation, Inc., 5
1 Franklin St, Fifth Floor
,
+ * Boston, MA 0211
0-1301
, USA.
*/
#ifndef __GST_ITERATOR_H__
*/
#ifndef __GST_ITERATOR_H__
@@
-146,7
+146,7
@@
typedef void (*GstIteratorForeachFunction) (const GValue * item, gpo
*
* A function to be passed to gst_iterator_fold().
*
*
* A function to be passed to gst_iterator_fold().
*
- * Returns:
TRUE if the fold should continue,
FALSE if it should stop.
+ * Returns:
%TRUE if the fold should continue, %
FALSE if it should stop.
*/
typedef gboolean (*GstIteratorFoldFunction) (const GValue * item, GValue * ret, gpointer user_data);
*/
typedef gboolean (*GstIteratorFoldFunction) (const GValue * item, GValue * ret, gpointer user_data);
@@
-225,9
+225,12
@@
struct _GstIterator {
gpointer _gst_reserved[GST_PADDING];
};
gpointer _gst_reserved[GST_PADDING];
};
+GST_API
GType gst_iterator_get_type (void);
/* creating iterators */
GType gst_iterator_get_type (void);
/* creating iterators */
+
+GST_API
GstIterator* gst_iterator_new (guint size,
GType type,
GMutex *lock,
GstIterator* gst_iterator_new (guint size,
GType type,
GMutex *lock,
@@
-237,37
+240,53
@@
GstIterator* gst_iterator_new (guint size,
GstIteratorItemFunction item,
GstIteratorResyncFunction resync,
GstIteratorFreeFunction free) G_GNUC_MALLOC;
GstIteratorItemFunction item,
GstIteratorResyncFunction resync,
GstIteratorFreeFunction free) G_GNUC_MALLOC;
-
+GST_API
GstIterator* gst_iterator_new_list (GType type,
GMutex *lock,
guint32 *master_cookie,
GList **list,
GObject * owner,
GstIteratorItemFunction item) G_GNUC_MALLOC;
GstIterator* gst_iterator_new_list (GType type,
GMutex *lock,
guint32 *master_cookie,
GList **list,
GObject * owner,
GstIteratorItemFunction item) G_GNUC_MALLOC;
-
+GST_API
GstIterator* gst_iterator_new_single (GType type,
const GValue * object) G_GNUC_MALLOC;
GstIterator* gst_iterator_new_single (GType type,
const GValue * object) G_GNUC_MALLOC;
-
+GST_API
GstIterator* gst_iterator_copy (const GstIterator *it) G_GNUC_MALLOC;
/* using iterators */
GstIterator* gst_iterator_copy (const GstIterator *it) G_GNUC_MALLOC;
/* using iterators */
+
+GST_API
GstIteratorResult gst_iterator_next (GstIterator *it, GValue * elem);
GstIteratorResult gst_iterator_next (GstIterator *it, GValue * elem);
+
+GST_API
void gst_iterator_resync (GstIterator *it);
void gst_iterator_resync (GstIterator *it);
+
+GST_API
void gst_iterator_free (GstIterator *it);
void gst_iterator_free (GstIterator *it);
+GST_API
void gst_iterator_push (GstIterator *it, GstIterator *other);
/* higher-order functions that operate on iterators */
void gst_iterator_push (GstIterator *it, GstIterator *other);
/* higher-order functions that operate on iterators */
+
+GST_API
GstIterator* gst_iterator_filter (GstIterator *it, GCompareFunc func,
const GValue * user_data) G_GNUC_MALLOC;
GstIterator* gst_iterator_filter (GstIterator *it, GCompareFunc func,
const GValue * user_data) G_GNUC_MALLOC;
+GST_API
GstIteratorResult gst_iterator_fold (GstIterator *it,
GstIteratorFoldFunction func,
GValue *ret, gpointer user_data);
GstIteratorResult gst_iterator_fold (GstIterator *it,
GstIteratorFoldFunction func,
GValue *ret, gpointer user_data);
+GST_API
GstIteratorResult gst_iterator_foreach (GstIterator *it,
GstIteratorForeachFunction func, gpointer user_data);
GstIteratorResult gst_iterator_foreach (GstIterator *it,
GstIteratorForeachFunction func, gpointer user_data);
+GST_API
gboolean gst_iterator_find_custom (GstIterator *it, GCompareFunc func,
GValue *elem, gpointer user_data);
gboolean gst_iterator_find_custom (GstIterator *it, GCompareFunc func,
GValue *elem, gpointer user_data);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstIterator, gst_iterator_free)
+#endif
+
G_END_DECLS
#endif /* __GST_ITERATOR_H__ */
G_END_DECLS
#endif /* __GST_ITERATOR_H__ */