From c5da1babf54cbe1e301aa90b9efdec335b91f92f Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Fri, 9 Jun 2017 14:04:31 +0200 Subject: jibuf: Estimate src clock skew Change-Id: Ifae633d53107417a8e2f9b0f200d2711db72d199 --- include/osmocom/netif/jibuf.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/osmocom/netif/jibuf.h') 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); /*! @} */ -- cgit v1.2.3