diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-04 19:56:47 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-04 19:59:33 +0200 |
commit | fe9fccd412f2bd52d483f1b8cc5fa2135438d254 (patch) | |
tree | 5d9962044e7480c2be2dd06a0f618be0696a6714 /include/osmocom/netif | |
parent | fdc65389864dfd567abaa67797f06b70905f5b19 (diff) |
osmux: cleanup tx path
This patch cleans up the transmission path for osmux, this involves
the functions that extract the messages from the batch and the one
that reconstruct the timing.
They now take a list that contains the reconstructed RTP messages:
osmux_xfrm_output(osmuxh, &h_output, &list);
osmux_tx_sched(&list, &tv, tx_cb, NULL);
Diffstat (limited to 'include/osmocom/netif')
-rw-r--r-- | include/osmocom/netif/osmux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/netif/osmux.h b/include/osmocom/netif/osmux.h index 38254fa..b84b119 100644 --- a/include/osmocom/netif/osmux.h +++ b/include/osmocom/netif/osmux.h @@ -60,9 +60,9 @@ void osmux_xfrm_input_init(struct osmux_in_handle *h); int osmux_xfrm_input(struct msgb *msg); void osmux_xfrm_input_deliver(struct osmux_in_handle *h); -struct msgb *osmux_xfrm_output(struct osmux_hdr *osmuxh, struct osmux_out_handle *h); +int osmux_xfrm_output(struct osmux_hdr *osmuxh, struct osmux_out_handle *h, struct llist_head *list); struct osmux_hdr *osmux_xfrm_output_pull(struct msgb *msg); -void osmux_tx_sched(struct msgb *msg, struct timeval *when, void (*tx_cb)(struct msgb *msg, void *data), void *data); +void osmux_tx_sched(struct llist_head *list, struct timeval *when, void (*tx_cb)(struct msgb *msg, void *data), void *data); #endif |