aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2023-08-31 09:14:17 +0200
committerLuca Deri <deri@ntop.org>2023-08-31 09:14:17 +0200
commit16b0ce37100242b6cbaafe65d05ee4940b5aab3f (patch)
tree3275f107daeb62c09da6b2409db01aa381a49b27 /src/include/ndpi_api.h
parentf82493966286e4ec88f909baa5b5066df12f73e6 (diff)
Code cleanup
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index a1f4e387b..fa7f77f33 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -1799,7 +1799,8 @@ extern "C" {
u_int32_t ndpi_crc32(const void* data, size_t n_bytes);
u_int32_t ndpi_nearest_power_of_two(u_int32_t x);
-
+ u_int32_t ndpi_hash_string(char *str);
+
/* ******************************* */
int ndpi_des_init(struct ndpi_des_struct *des, double alpha, double beta, float significance);
@@ -2059,20 +2060,6 @@ extern "C" {
u_int32_t ndpi_filter_cardinality(ndpi_filter *f);
/* ******************************* */
-
- /*
- Efficient (space and speed) probabilitic datastructure
- for exact string searching with a false positive rate
- of 5 * 10 ^ -8
- */
- ndpi_string_search* ndpi_string_search_alloc();
- void ndpi_string_search_free(ndpi_string_search *s);
- u_int32_t ndpi_string_search_size(ndpi_string_search *s);
- bool ndpi_string_search_add(ndpi_string_search *s, char *string);
- bool ndpi_string_search_contains(ndpi_string_search *s, char *string);
- u_int32_t ndpi_string_search_cardinality(ndpi_string_search *f);
-
- /* ******************************* */
/*
Efficient (space and speed) probabilitic datastructure