aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif/jibuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmocom/netif/jibuf.h')
-rw-r--r--include/osmocom/netif/jibuf.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/netif/jibuf.h b/include/osmocom/netif/jibuf.h
index aca319a..64f0824 100644
--- a/include/osmocom/netif/jibuf.h
+++ b/include/osmocom/netif/jibuf.h
@@ -41,6 +41,9 @@ struct jibuf {
struct timeval last_enqueue_time;
struct timeval next_dequeue_time;
+ bool skew_enabled;
+ int32_t skew_us; /* src clock skew, in usec */
+
struct {
uint32_t total_enqueued;
uint64_t total_dropped;
@@ -59,6 +62,8 @@ bool osmo_jibuf_empty(struct jibuf *jb);
void osmo_jibuf_set_min_delay(struct jibuf *jb, uint32_t min_delay);
void osmo_jibuf_set_max_delay(struct jibuf *jb, uint32_t max_delay);
+void osmo_jibuf_enable_skew_compensation(struct jibuf *jb, bool enable);
+
void osmo_jibuf_set_dequeue_cb(struct jibuf *jb, osmo_jibuf_dequeue_cb dequeue_cb, void* cb_data);
/*! @} */