aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/msgb.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-10-09 07:33:36 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-10-21 16:38:13 +0200
commitcbbd49807f3f66f4a7ff6be03b5e63a95650a1c8 (patch)
tree8746050e2fcd020145ccc7e1987ae5913bd98386 /openbsc/include/openbsc/msgb.h
parent77a838dff729a2d2c9bd7a4ee0b99f7dcc394ab2 (diff)
[msgb] Add msgb_reset to reset an existing msgb* to the initial state
The reset is useful if one msgb is supposed to be used over and over again and is avoiding to use msgb_free,msgb_alloc in the application code.
Diffstat (limited to 'openbsc/include/openbsc/msgb.h')
-rw-r--r--openbsc/include/openbsc/msgb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/msgb.h b/openbsc/include/openbsc/msgb.h
index 5ecac459b..ab3c03396 100644
--- a/openbsc/include/openbsc/msgb.h
+++ b/openbsc/include/openbsc/msgb.h
@@ -51,6 +51,7 @@ extern struct msgb *msgb_alloc(u_int16_t size, const char *name);
extern void msgb_free(struct msgb *m);
extern void msgb_enqueue(struct llist_head *queue, struct msgb *msg);
extern struct msgb *msgb_dequeue(struct llist_head *queue);
+extern void msgb_reset(struct msgb *m);
#define msgb_l2(m) ((void *)(m->l2h))
#define msgb_l3(m) ((void *)(m->l3h))