aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2024-01-09 21:49:30 +0100
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-01-18 10:21:24 +0100
commit88720331ae6c68e99816ae3eee5f618fdddac02f (patch)
tree4646cf5c6120e3bb29181644df6465e54750aa3c /python
parent1289951b322c66295cdb03b3c26a6cdd24cc160d (diff)
config: remove `enum ndpi_prefs`
Diffstat (limited to 'python')
2 files changed, 2 insertions, 2 deletions
diff --git a/python/ndpi/ndpi.py b/python/ndpi/ndpi.py
index 2d73470ad..743b7a805 100644
--- a/python/ndpi/ndpi.py
+++ b/python/ndpi/ndpi.py
@@ -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)
diff --git a/python/ndpi/ndpi_build.py b/python/ndpi/ndpi_build.py
index 84c1e04e4..6c07731f4 100644
--- a/python/ndpi/ndpi_build.py
+++ b/python/ndpi/ndpi_build.py
@@ -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,