Iterator.this

Create a new iterator. This function is mainly used for objects implementing the next/resync/free function to iterate a data structure. For each item retrieved, the item function is called with the lock held. The free function is called when the iterator is freed.

  1. this(GstIterator* gstIterator)
  2. this(uint size, GType type, Mutex lock, uint masterCookie, GstIteratorNextFunction next, GstIteratorItemFunction item, GstIteratorResyncFunction resync, GstIteratorFreeFunction free)
  3. this(GType type, Mutex lock, uint* masterCookie, GList** list, void* owner, GstIteratorItemFunction item, GstIteratorDisposeFunction free)

Parameters

size uint

the size of the iterator structure

type GType

GType of children

lock Mutex

pointer to a GMutex.

masterCookie uint

pointer to a guint32 to protect the iterated object.

next GstIteratorNextFunction

function to get next item

item GstIteratorItemFunction

function to call on each item retrieved

resync GstIteratorResyncFunction

function to resync the iterator

free GstIteratorFreeFunction

function to free the iterator

Throws

ConstructionException GTK+ fails to create the object.

Meta