diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h | 3 | ||||
-rw-r--r-- | src/include/ndpi_typedefs.h | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index ed3e40d04..14de814f6 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -142,10 +142,11 @@ extern "C" { * hosts and do other things. As soon as you are ready to use * it do not forget to call first ndpi_finalize_initalization() * + * @par prefs = load preferences * @return the initialized detection module * */ - struct ndpi_detection_module_struct *ndpi_init_detection_module(void); + struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs prefs); /** * Completes the initialization (2nd step) diff --git a/src/include/ndpi_typedefs.h b/src/include/ndpi_typedefs.h index 0b1572249..dc529e22b 100644 --- a/src/include/ndpi_typedefs.h +++ b/src/include/ndpi_typedefs.h @@ -1379,6 +1379,14 @@ typedef struct { u_int8_t value; } ndpi_network; +typedef u_int32_t ndpi_init_prefs; + +typedef enum + { + ndpi_no_prefs = 0, + ndpi_dont_load_tor_hosts, + } ndpi_prefs; + typedef struct { int protocol_id; ndpi_protocol_category_t protocol_category; |