MCPcopy Create free account
hub / github.com/ElementsProject/lightning / lqueue_front_

Function lqueue_front_

ccan/ccan/lqueue/lqueue.h:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161#define lqueue_front(q_) \
162 lqueue_entry((q_), lqueue_front_(tcon_unwrap(q_)))
163static inline struct lqueue_link *lqueue_front_(const struct lqueue_ *q)
164{
165 if (!q->back)
166 return NULL;
167 else
168 return q->back->next;
169}
170
171/**
172 * lqueue_back - get back entry in a queue

Callers 2

lqueue_enqueue_Function · 0.85
lqueue_dequeue_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected