diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-06-09 14:04:31 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-02-28 13:05:09 +0100 |
commit | c5da1babf54cbe1e301aa90b9efdec335b91f92f (patch) | |
tree | 22b3a34f59781eebdea05118684c62b8a277bc1f /include | |
parent | 7365c327676ed9d8fc22ad838359a8e0f53fbd7f (diff) |
jibuf: Estimate src clock skew
Change-Id: Ifae633d53107417a8e2f9b0f200d2711db72d199
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/netif/jibuf.h | 5 |
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); /*! @} */ |