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
This commit is contained in:
Ivan Nardi
2023-11-09 10:50:59 +01:00
committed by GitHub
parent 0673da54b5
commit b08c787fe2
206 changed files with 621 additions and 424 deletions
+2 -7
View File
@@ -25,6 +25,8 @@
#include "ndpi_protocol_ids.h"
#define NDPI_CURRENT_PROTO NDPI_PROTOCOL_QUIC
#include "ndpi_api.h"
#include "ndpi_private.h"
#ifdef USE_HOST_LIBGCRYPT
#include <gcrypt.h>
@@ -43,13 +45,6 @@
* https://www.rfc-editor.org/rfc/rfc9369.txt [v2]
*/
extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow, uint32_t quic_version);
extern int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
const u_int8_t *ua_ptr, u_int16_t ua_ptr_len);
extern int is_valid_rtp_payload_type(uint8_t type);
/* Versions */
#define V_2 0x6b3343cf
#define V_1 0x00000001