summaryrefslogtreecommitdiff
path: root/src/core.h
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-09-21 19:25:34 +0200
committerAlfred E. Heggestad <aeh@db.org>2014-09-21 19:25:34 +0200
commitd0ae75c37e100f39013d9bf9aff2a36ee22ca12d (patch)
tree5d7559d64c4464143e7ee78b8b249a9f2af07757 /src/core.h
parent8f04c0368a665039b11238673eb375201f54b013 (diff)
metric: add metric_init()
- metric_init calls tmr_start(). tmr_start must be called from the re_main() thread.
Diffstat (limited to 'src/core.h')
-rw-r--r--src/core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core.h b/src/core.h
index ea2dc37..f8c21ac 100644
--- a/src/core.h
+++ b/src/core.h
@@ -226,6 +226,7 @@ struct metric {
uint32_t n_bytes_last;
};
+void metric_init(struct metric *metric);
void metric_reset(struct metric *metric);
void metric_add_packet(struct metric *metric, size_t packetsize);
uint32_t metric_avg_bitrate(const struct metric *metric);