aboutsummaryrefslogtreecommitdiff
path: root/src/lib/ndpi_utils.c
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2023-11-07 15:30:56 +0100
committerGitHub <noreply@github.com>2023-11-07 15:30:56 +0100
commit58a9e2d9679f268a64b9082dae70498147bb58a8 (patch)
treeb894bd3b1881e6c1cc9649bc91fcbd1542d945a8 /src/lib/ndpi_utils.c
parent0db12b1390b1cc554b927230c76b05264c05b498 (diff)
Remove `struct ndpi_packet_struct` from the public API (#2129)
Right now, the only instance of `struct ndpi_packet_struct` is embedded into `struct ndpi_detection_module_struct`. Since the latter is a private structure (because of `NDPI_LIB_COMPILATION` ) there is no way for the application to get a pointer to `ndpi_struct->packet`. Bottom line: the application can't use any API functions having `struct ndpi_packet_struct *` as parameter. Remove them all (since they are completly unused and unusable). There are no public helper functions to initialize/populate/deinit a `struct ndpi_packet_struct` object, so the application can't neither create its own instance of this object. Protect `struct ndpi_packet_struct` via the same define `NDPI_LIB_COMPILATION`.
Diffstat (limited to 'src/lib/ndpi_utils.c')
0 files changed, 0 insertions, 0 deletions