From 257b630216f0dc702013ecc51ac680b5296ae898 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 21 Aug 2015 18:07:47 +0200 Subject: llc: Add move_and_merge method to llc_queue This methods takes all LLC frames from the old LLC queue and moves them into the current. If both queues are ordered chronologically (recv_time), the resulting queue is also ordered. Sponsored-by: On-Waves ehf --- src/llc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/llc.h') diff --git a/src/llc.h b/src/llc.h index fe8958f..94de16e 100644 --- a/src/llc.h +++ b/src/llc.h @@ -80,6 +80,7 @@ struct gprs_llc_queue { void enqueue(struct msgb *llc_msg, const MetaInfo *info = 0); struct msgb *dequeue(const MetaInfo **info = 0); void clear(BTS *bts); + void move_and_merge(gprs_llc_queue *o); size_t size() const; size_t octets() const; -- cgit v1.2.3