aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/netif
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2017-06-09 14:04:31 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-04-13 16:13:17 +0200
commite9e6200d84e9cdd56579a31faf4eaa8767230ed2 (patch)
tree1a3aac257e74837d35bd55a0f165aafc4c3fcaae /include/osmocom/netif
parent14947b931bc532abd13fd46b6d23ba6e63f69d72 (diff)
jibuf: Estimate src clock skew
Diffstat (limited to 'include/osmocom/netif')
-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 6273983..dff8309 100644
--- a/include/osmocom/netif/jibuf.h
+++ b/include/osmocom/netif/jibuf.h
@@ -40,6 +40,9 @@ struct osmo_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;
@@ -58,6 +61,8 @@ bool osmo_jibuf_empty(struct osmo_jibuf *jb);
void osmo_jibuf_set_min_delay(struct osmo_jibuf *jb, uint32_t min_delay);
void osmo_jibuf_set_max_delay(struct osmo_jibuf *jb, uint32_t max_delay);
+void osmo_jibuf_enable_skew_compensation(struct osmo_jibuf *jb, bool enable);
+
void osmo_jibuf_set_dequeue_cb(struct osmo_jibuf *jb, osmo_jibuf_dequeue_cb dequeue_cb, void* cb_data);
/*! @} */