Top | ![]() |
![]() |
![]() |
![]() |
gboolean | oobs_list_get_iter_first () |
gboolean | oobs_list_iter_next () |
gboolean | oobs_list_remove () |
void | oobs_list_append () |
void | oobs_list_prepend () |
void | oobs_list_insert_after () |
void | oobs_list_insert_before () |
GObject * | oobs_list_get () |
void | oobs_list_set () |
void | oobs_list_clear () |
gint | oobs_list_get_n_items () |
OobsListIter * | oobs_list_iter_copy () |
void | oobs_list_iter_free () |
gboolean oobs_list_get_iter_first (OobsList *list
,OobsListIter *iter
);
Initializes iter
the iterator pointing to the
first element in list
. if list
is empty, then FALSE
is returned, and iter
is not initialized.
gboolean oobs_list_iter_next (OobsList *list
,OobsListIter *iter
);
Sets iter
to point to the element following it. If there's
no next iter
, of if iter
was invalid for list
, FALSE is
returned, and iter
is set to invalid.
gboolean oobs_list_remove (OobsList *list
,OobsListIter *iter
);
Removes an element pointed by iter
from list
. This function will not
be effective if list
is locked, or if iter
doesn't point to an element
contained in list
.
void oobs_list_append (OobsList *list
,OobsListIter *iter
);
Appends a new element to list
. iter
will be changed
to point to this element, to fill in values, you need to call
oobs_list_set()
.
void oobs_list_prepend (OobsList *list
,OobsListIter *iter
);
Prepends a new element to list
. iter
will be changed
to point to this element, to fill in values, you need to call
oobs_list_set()
.
void oobs_list_insert_after (OobsList *list
,OobsListIter *anchor
,OobsListIter *iter
);
Inserts a new element after anchor
. iter
will be changed
to point to this element, to fill in values, you need to call
oobs_list_set()
.
list |
An OobsList |
|
anchor |
A valid OobsListIter |
|
iter |
An unset OobsListIter to set to the new element |
void oobs_list_insert_before (OobsList *list
,OobsListIter *anchor
,OobsListIter *iter
);
Inserts a new element before anchor
. iter
will be changed
to point to this element, to fill in values, you need to call
oobs_list_set()
.
list |
An OobsList |
|
anchor |
A valid OobsListIter |
|
iter |
An unset OobsListIter to set to the new element |
GObject * oobs_list_get (OobsList *list
,OobsListIter *iter
);
Retrieves a reference to the element referenced by OobsListIter.
void oobs_list_set (OobsList *list
,OobsListIter *iter
,gpointer data
);
Sets the data for the element referenced by OobsListIter.
This function will not be effective if the list is locked, or
if data
GType is different to the data contained in OobsList.
list |
an OobsList |
|
iter |
a valid OobsListIter for the element being set |
|
data |
a pointer to the data being set |
void
oobs_list_clear (OobsList *list
);
Removes all contents from an OobsList. This function will not be effective if the list is locked.
gint
oobs_list_get_n_items (OobsList *list
);
Returns the number of elements that the list contains.
OobsListIter *
oobs_list_iter_copy (OobsListIter *iter
);
Returns a newly allocated copy of the given iterator. This function is not
intended for use in applications, because you can just copy the structs by
value (OobsListIter new_iter = iter;). You must free this iter with
oobs_list_iter_free()
.
void
oobs_list_iter_free (OobsListIter *iter
);
Frees an iterator that has been allocated in the heap.
“contained-type”
property“contained-type” gpointer
GType contained in the list.
Flags: Write / Construct Only