From 16b0ce37100242b6cbaafe65d05ee4940b5aab3f Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 31 Aug 2023 09:14:17 +0200 Subject: Code cleanup --- src/include/ndpi_api.h | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'src/include/ndpi_api.h') 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); @@ -2058,20 +2059,6 @@ extern "C" { size_t ndpi_filter_size(ndpi_filter *f); 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); - /* ******************************* */ /* -- cgit v1.2.3