JULEA
|
Data Structures | |
struct | JListElement |
struct | JList |
Typedefs | |
typedef struct JListElement | JListElement |
typedef struct JList | JList |
typedef void(* | JListFreeFunc) (gpointer) |
Functions | |
JList * | j_list_new (JListFreeFunc free_func) |
JList * | j_list_ref (JList *list) |
void | j_list_unref (JList *list) |
guint | j_list_length (JList *list) |
void | j_list_append (JList *list, gpointer data) |
void | j_list_prepend (JList *list, gpointer data) |
gpointer | j_list_get_first (JList *list) |
gpointer | j_list_get_last (JList *list) |
void | j_list_delete_all (JList *list) |
typedef struct JListElement JListElement |
typedef void(* JListFreeFunc) (gpointer) |
void j_list_append | ( | JList * | list, |
gpointer | data | ||
) |
Appends a new list element to a list.
list | A list. |
data | A list element. |
void j_list_delete_all | ( | JList * | list | ) |
Deletes all list elements.
list | A list. |
gpointer j_list_get_first | ( | JList * | list | ) |
Returns the first list element.
list | A list. |
gpointer j_list_get_last | ( | JList * | list | ) |
Returns the last list element.
list | A list. |
guint j_list_length | ( | JList * | list | ) |
Returns the list's length.
list | A list. |
JList * j_list_new | ( | JListFreeFunc | free_func | ) |
Creates a new list.
free_func | A function to free the element data, or NULL. |
void j_list_prepend | ( | JList * | list, |
gpointer | data | ||
) |
Prepends a new list element to a list.
list | A list. |
data | A list element. |
Increases the list's reference count.
list | A list. |
void j_list_unref | ( | JList * | list | ) |
Decreases the list's reference count. When the reference count reaches zero, frees the memory allocated for the list.
list | A list. |