diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/ndpi/ndpi.py | 2 | ||||
-rw-r--r-- | python/ndpi/ndpi_build.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/ndpi/ndpi.py b/python/ndpi/ndpi.py index 32d6ea595..3745af94d 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() + self._detection_module = lib.ndpi_init_detection_module(ffi.NULL) 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 a2af30716..07aac0de3 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(); +struct ndpi_detection_module_struct *ndpi_init_detection_module(struct ndpi_global_context *g_ctx); 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, |