aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-11-09 10:50:59 +0100
committerGitHub <noreply@github.com>2023-11-09 10:50:59 +0100
commitb08c787fe267053afdea82701071f3878c09244b (patch)
treecbdc12984d11e1999ea90c07d1c838442199fa24 /python
parent0673da54b5db6be849e5ad3b22e80f3cadfccca9 (diff)
Have a clear distinction between public and private/internal API (#2137)
1) Public API/headers in `src/include/` [as it has always been] 2) Private API/headers in `src/lib/` Try to keep the "ndpi_" prefix only for the public functions
Diffstat (limited to 'python')
-rw-r--r--python/ndpi/ndpi_build.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/ndpi/ndpi_build.py b/python/ndpi/ndpi_build.py
index ba1d68a63..84c1e04e4 100644
--- a/python/ndpi/ndpi_build.py
+++ b/python/ndpi/ndpi_build.py
@@ -91,9 +91,6 @@ NDPI_CDEF = subprocess.run(["gcc",
).stdout.decode('utf-8',
errors='ignore')
-NDPI_MODULE_STRUCT_CDEF = NDPI_CDEF.split("//CFFI.NDPI_MODULE_STRUCT")[1]
-
-
NDPI_PACKED = subprocess.run(["gcc",
"-DNDPI_LIB_COMPILATION", "-DNDPI_CFFI_PREPROCESSING",
"-E", "-x", "c", "-P", "-C",
@@ -104,7 +101,7 @@ NDPI_PACKED = subprocess.run(["gcc",
NDPI_PACKED_STRUCTURES = NDPI_PACKED.split("//CFFI.NDPI_PACKED_STRUCTURES")[1]
-NDPI_SOURCE = NDPI_INCLUDES + NDPI_MODULE_STRUCT_CDEF + NDPI_HELPERS
+NDPI_SOURCE = NDPI_INCLUDES + NDPI_HELPERS
ffi_builder.set_source("_ndpi",