config: remove enum ndpi_prefs

This commit is contained in:
Nardi Ivan
2024-01-18 10:21:24 +01:00
committed by Ivan Nardi
parent 1289951b32
commit 88720331ae
22 changed files with 77 additions and 90 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class NDPI(object):
"_detection_module")
def __init__(self):
self._detection_module = lib.ndpi_init_detection_module(0)
self._detection_module = lib.ndpi_init_detection_module()
if self._detection_module == ffi.NULL:
raise MemoryError("Unable to instantiate NDPI object")
lib.ndpi_py_setup_detection_module(self._detection_module)
+1 -1
View File
@@ -49,7 +49,7 @@ struct ndpi_flow_struct * ndpi_py_initialize_flow(void) {
NDPI_APIS = """
u_int16_t ndpi_get_api_version(void);
char* ndpi_revision(void);
struct ndpi_detection_module_struct *ndpi_init_detection_module(ndpi_init_prefs prefs);
struct ndpi_detection_module_struct *ndpi_init_detection_module();
void ndpi_exit_detection_module(struct ndpi_detection_module_struct *ndpi_struct);
void ndpi_flow_free(void *ptr);
ndpi_protocol ndpi_detection_process_packet(struct ndpi_detection_module_struct *ndpi_struct,