diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2025-06-06 12:18:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-06 12:18:09 +0200 |
commit | 0e00318d7c8c81f1a3251054428b6e2b5a23df6d (patch) | |
tree | 3e048c667ce564271774e22acbf52d72fd3753b7 /src/include/ndpi_api.h | |
parent | 3947af5696629e97d89bf4f545037704b72ba6c4 (diff) |
Dynamic allocation of `ndpi_struct->proto_defaults[]` (#2866)
Partial revert of 88bfe2cf0: in the trees we save the index and no more
a pointer to `ndpi_struct->proto_defaults[]`.
Remove same functions from public API
See #2136
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index f7340682f..8b1362393 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -170,38 +170,6 @@ extern "C" { u_int16_t port /* network byte order */); /** - * Creates a protocol match that does not contain any hostnames. - * - * @par hostname_list = the desired hostname list form which the first entry is used to create the match - * @par empty_app_protocol = the resulting protocol match that does contain all information except the hostname - * - * @return 0 on success, 1 otherwise - */ - int ndpi_init_empty_app_protocol(ndpi_protocol_match const * const hostname_list, - ndpi_protocol_match * const empty_app_protocol); - - /** - * Init single protocol match. - * - * @par ndpi_mod = the struct created for the protocol detection - * @par match = the struct passed to match the protocol - * - * @return 0 on success, 1 otherwise - */ - int ndpi_init_app_protocol(struct ndpi_detection_module_struct *ndpi_str, - ndpi_protocol_match const * const match); - - /** - * Init single protocol match and adds it to the Aho-Corasick automata. - * - * @par ndpi_mod = the struct created for the protocol detection - * @par match = the struct passed to match the protocol - * - */ - void ndpi_init_protocol_match(struct ndpi_detection_module_struct *ndpi_mod, - ndpi_protocol_match const * const match); - - /** * Returns a new initialized global context. * * @return the initialized global context |