Top | ![]() |
![]() |
![]() |
![]() |
IpatchIter *
ipatch_iter_alloc (void
);
Allocates an item iterator. This function is seldom used since IpatchIter structures are usually allocated on the stack.
[skip]
Newly allocated item iterator. Should be freed with
ipatch_iter_free()
when finished with it.
void
ipatch_iter_free (IpatchIter *iter
);
Frees an item iterator that was allocated with ipatch_iter_alloc()
.
Seldom used since IpatchIter structures are usually allocated on the
stack.
[skip]
IpatchIter *
ipatch_iter_duplicate (IpatchIter *iter
);
Duplicates a patch iterator. Seldom used since IpatchIter structures are usually allocated on the stack and can be copied directly.
[skip]
Newly allocated patch iter identical to iter
. Free it with
ipatch_iter_free()
when finished.
void ipatch_iter_GSList_init (IpatchIter *iter
,GSList **list
);
Initialize an iterator to iterate over a GSList.
[skip]
gpointer
ipatch_iter_GSList_get (IpatchIter *iter
);
GSList item iterator method to get the current item.
[skip]
gpointer
ipatch_iter_GSList_next (IpatchIter *iter
);
GSList item iterator method to get the next item and advance the iterator's position.
[skip]
gpointer
ipatch_iter_GSList_first (IpatchIter *iter
);
GSList item iterator method to get the first item and set the iterator's position to it.
[skip]
gpointer
ipatch_iter_GSList_last (IpatchIter *iter
);
GSList item iterator method to get the last item and set the iterator's position to it.
[skip]
gpointer ipatch_iter_GSList_index (IpatchIter *iter
,int index
);
GSList item iterator method to get an item at a given index and set the iterator's position to it.
[skip]
void ipatch_iter_GSList_insert (IpatchIter *iter
,gpointer item
);
GSList item iterator method to insert an item pointer.
[skip]
void
ipatch_iter_GSList_remove (IpatchIter *iter
);
GSList item iterator method to remove the current item and advance the current position.
[skip]
int
ipatch_iter_GSList_count (IpatchIter *iter
);
GSList item iterator method to get the count of items.
[skip]
void ipatch_iter_GList_init (IpatchIter *iter
,GList **list
);
Initialize an iterator to iterate over a GList.
[skip]
gpointer
ipatch_iter_GList_get (IpatchIter *iter
);
GList item iterator method to get the current item.
[skip]
gpointer
ipatch_iter_GList_next (IpatchIter *iter
);
GList item iterator method to get the next item and advance the iterator's position.
[skip]
gpointer
ipatch_iter_GList_first (IpatchIter *iter
);
GList item iterator method to get the first item and set the iterator's position to it.
[skip]
gpointer
ipatch_iter_GList_last (IpatchIter *iter
);
GList item iterator method to get the last item and set the iterator's position to it.
[skip]
gpointer ipatch_iter_GList_index (IpatchIter *iter
,int index
);
GList item iterator method to get an item at a given index and set the iterator's position to it.
[skip]
void ipatch_iter_GList_insert (IpatchIter *iter
,gpointer item
);
GList item iterator method to insert an item pointer.
[skip]
void
ipatch_iter_GList_remove (IpatchIter *iter
);
GList item iterator method to remove the current item and advance the current position.
[skip]
int
ipatch_iter_GList_count (IpatchIter *iter
);
GList item iterator method to get the count of items.
[skip]
#define IPATCH_ITER_ARRAY_GET_SIZE(iter) (GPOINTER_TO_UINT (iter->data2))
void ipatch_iter_array_init (IpatchIter *iter
,gpointer *array
,guint size
);
Initialize an iterator to iterate over an array (read only).
[skip]
gpointer
ipatch_iter_array_get (IpatchIter *iter
);
Array item iterator method to get the current item.
[skip]
gpointer
ipatch_iter_array_next (IpatchIter *iter
);
Array item iterator method to get the next item and advance the iterator's position.
[skip]
gpointer
ipatch_iter_array_first (IpatchIter *iter
);
Array item iterator method to get the first item and set the iterator's position to it.
[skip]
gpointer
ipatch_iter_array_last (IpatchIter *iter
);
Array item iterator method to get the last item and set the iterator's position to it.
[skip]
gpointer ipatch_iter_array_index (IpatchIter *iter
,int index
);
Array item iterator method to get an item at a given index and set the iterator's position to it.
[skip]
void ipatch_iter_array_insert (IpatchIter *iter
,gpointer item
);
array item iterator method to insert an item pointer.
[skip]
void
ipatch_iter_array_remove (IpatchIter *iter
);
array item iterator method to remove the current item and advance the current position.
[skip]
int
ipatch_iter_array_count (IpatchIter *iter
);
array item iterator method to get the count of items.
[skip]
struct IpatchIterMethods { gpointer(*get)(IpatchIter *iter); /* get item method */ gpointer(*next)(IpatchIter *iter); /* next item method */ gpointer(*first)(IpatchIter *iter); /* first item method */ gpointer(*last)(IpatchIter *iter); /* last item method */ gpointer(*index)(IpatchIter *iter, int index); /* index item method */ void (*insert)(IpatchIter *iter, gpointer item); /* insert item method */ void (*remove)(IpatchIter *iter); /* remove current item method */ int (*count)(IpatchIter *iter); /* count items method */ };