fm-list

fm-list

Synopsis

#define             FM_LIST                             (list)
struct              FmList;
struct              FmListFuncs;
void                fm_list_clear                       (FmList *list);
void                fm_list_delete_link                 (FmList *list,
                                                         GList *l_);
FmList *            fm_list_new                         (FmListFuncs *funcs);
FmList *            fm_list_ref                         (FmList *list);
void                fm_list_remove                      (FmList *list,
                                                         gpointer data);
void                fm_list_remove_all                  (FmList *list,
                                                         gpointer data);
void                fm_list_unref                       (FmList *list);
return              g_queue_find                        ();
return              g_queue_find_custom                 ();
return              g_queue_get_length                  ();
return              g_queue_index                       ();
return              g_queue_is_empty                    ();
return              g_queue_peek_head                   ();
return              g_queue_peek_head_link              ();
return              g_queue_peek_nth                    ();
return              g_queue_peek_nth_link               ();
return              g_queue_peek_tail                   ();
return              g_queue_peek_tail_link              ();
return              g_queue_pop_head                    ();
return              g_queue_pop_head_link               ();
return              g_queue_pop_nth                     ();
return              g_queue_pop_nth_link                ();
return              g_queue_pop_tail                    ();
return              g_queue_pop_tail_link               ();

Description

Details

FM_LIST()

#define FM_LIST(list) ((FmList*)list)

struct FmList

struct FmList {
	GQueue list;
	FmListFuncs* funcs;
	gint n_ref;
};

struct FmListFuncs

struct FmListFuncs {
	gpointer (*item_ref)(gpointer item);
	void (*item_unref)(gpointer item);
};

fm_list_clear ()

void                fm_list_clear                       (FmList *list);

fm_list_delete_link ()

void                fm_list_delete_link                 (FmList *list,
                                                         GList *l_);

fm_list_new ()

FmList *            fm_list_new                         (FmListFuncs *funcs);

fm_list_ref ()

FmList *            fm_list_ref                         (FmList *list);

fm_list_remove ()

void                fm_list_remove                      (FmList *list,
                                                         gpointer data);

fm_list_remove_all ()

void                fm_list_remove_all                  (FmList *list,
                                                         gpointer data);

fm_list_unref ()

void                fm_list_unref                       (FmList *list);

g_queue_find ()

return              g_queue_find                        ();

g_queue_find_custom ()

return              g_queue_find_custom                 ();

g_queue_get_length ()

return              g_queue_get_length                  ();

g_queue_index ()

return              g_queue_index                       ();

g_queue_is_empty ()

return              g_queue_is_empty                    ();

g_queue_peek_head ()

return              g_queue_peek_head                   ();

g_queue_peek_head_link ()

return              g_queue_peek_head_link              ();

g_queue_peek_nth ()

return              g_queue_peek_nth                    ();

g_queue_peek_nth_link ()

return              g_queue_peek_nth_link               ();

g_queue_peek_tail ()

return              g_queue_peek_tail                   ();

g_queue_peek_tail_link ()

return              g_queue_peek_tail_link              ();

g_queue_pop_head ()

return              g_queue_pop_head                    ();

g_queue_pop_head_link ()

return              g_queue_pop_head_link               ();

g_queue_pop_nth ()

return              g_queue_pop_nth                     ();

g_queue_pop_nth_link ()

return              g_queue_pop_nth_link                ();

g_queue_pop_tail ()

return              g_queue_pop_tail                    ();

g_queue_pop_tail_link ()

return              g_queue_pop_tail_link               ();