https://bugzilla.gnome.org/show_bug.cgi?id=638987
#include "gst_private.h"
#include <gst/gstiterator.h>
+static GstIterator *
+gst_iterator_copy (GstIterator * it)
+{
+ return g_slice_copy (it->size, it);
+}
+
+GType
+gst_iterator_get_type (void)
+{
+ static GType type = 0;
+
+ if (G_UNLIKELY (type == 0))
+ type = g_boxed_type_register_static ("GstIterator",
+ (GBoxedCopyFunc) gst_iterator_copy, (GBoxedFreeFunc) gst_iterator_free);
+ return type;
+}
+
static void
gst_iterator_init (GstIterator * it,
guint size,
G_BEGIN_DECLS
+#define GST_TYPE_ITERATOR (gst_iterator_get_type ())
+
/**
* GstIteratorResult:
* @GST_ITERATOR_DONE: No more items in the iterator
gpointer _gst_reserved[GST_PADDING-1];
};
+GType gst_iterator_get_type (void);
+
/* creating iterators */
GstIterator* gst_iterator_new (guint size,
GType type,