MythTV  master
Classes | Macros | Functions
dllist.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  dl_node
struct  dl_head


#define dl_empty(h)   ((h)->first->next == 0)
#define dl_insert_before(p, n)   dl_insert_after((p)->prev, (n))
#define dl_insert_first(h, n)
#define dl_insert_last(h, n)
#define dl_remove_first(h)   dl_remove((h)->first)
#define dl_remove_last(h)   dl_remove((h)->last)


static struct dl_headdl_init (struct dl_head *h)
static struct dl_nodedl_remove (struct dl_node *n)
static struct dl_nodedl_insert_after (struct dl_node *p, struct dl_node *n)

Macro Definition Documentation

◆ dl_empty

#define dl_empty (   h)    ((h)->first->next == 0)

Definition at line 52 of file dllist.h.

◆ dl_insert_before

#define dl_insert_before (   p,
)    dl_insert_after((p)->prev, (n))

Definition at line 53 of file dllist.h.

◆ dl_insert_first

#define dl_insert_first (   h,
({ struct dl_node *_n = (n); \
dl_insert_before((h)->first, _n); })
Definition: dllist.h:8

Definition at line 54 of file dllist.h.

◆ dl_insert_last

#define dl_insert_last (   h,
({ struct dl_node *_n = (n); \
dl_insert_after((h)->last, _n); })
struct exc__state * last
Definition: pxsup2dast.c:98
Definition: dllist.h:8

Definition at line 56 of file dllist.h.

◆ dl_remove_first

#define dl_remove_first (   h)    dl_remove((h)->first)

Definition at line 58 of file dllist.h.

◆ dl_remove_last

#define dl_remove_last (   h)    dl_remove((h)->last)

Definition at line 59 of file dllist.h.

Function Documentation

◆ dl_init()

static struct dl_head* dl_init ( struct dl_head h)

Definition at line 22 of file dllist.h.

Referenced by vbi_open().

◆ dl_remove()

static struct dl_node* dl_remove ( struct dl_node n)

Definition at line 35 of file dllist.h.

Referenced by vbi_del_handler().

◆ dl_insert_after()

static struct dl_node* dl_insert_after ( struct dl_node p,
struct dl_node n 

Definition at line 43 of file dllist.h.