aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h.in
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-07-15 10:30:45 +0200
committerLuca Deri <deri@ntop.org>2020-07-15 10:30:45 +0200
commit9f3e3e8456f204edfc2d626b6473bb2278a1b9cb (patch)
tree504a68a1dedc607c76ef44277b74638df935ed86 /src/include/ndpi_api.h.in
parent91d132ea3dd99e10012916f1a1ededad2e0eefab (diff)
Add ndpi_hll_reset() API call
Fixes bug in ndpi_data_window_average() with zero points
Diffstat (limited to 'src/include/ndpi_api.h.in')
-rw-r--r--src/include/ndpi_api.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in
index 4b36fd3b2..c272d66c8 100644
--- a/src/include/ndpi_api.h.in
+++ b/src/include/ndpi_api.h.in
@@ -1059,7 +1059,8 @@ extern "C" {
/* Memory lifecycle */
int ndpi_hll_init(struct ndpi_hll *hll, u_int8_t bits);
void ndpi_hll_destroy(struct ndpi_hll *hll);
-
+ void ndpi_hll_reset(struct ndpi_hll *hll);
+
/* Add values */
void ndpi_hll_add(struct ndpi_hll *hll, const char *data, size_t data_len);
void ndpi_hll_add_number(struct ndpi_hll *hll, u_int32_t value) ;