Hidden ndpi_detection_module_struct definition
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
lib_LTLIBRARIES = libndpi.la
|
||||
|
||||
CFLAGS += -fPIC -DPIC # --coverage
|
||||
CFLAGS += -fPIC -DPIC -DNDPI_LIB_COMPILATION # --coverage
|
||||
libndpi_la_CPPFLAGS = -I$(top_srcdir)/src/include/ -I$(top_srcdir)/src/lib/third_party/include/ @HS_INC@
|
||||
libndpi_la_LDFLAGS = -version-info 1:0:0 -export-symbols $(top_srcdir)/libndpi.sym
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# cd src/lib
|
||||
# make -f Makefile.simple
|
||||
#
|
||||
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include
|
||||
CFLAGS += -fPIC -DPIC -I../include -Ithird_party/include -DNDPI_LIB_COMPILATION
|
||||
RANLIB=ranlib
|
||||
|
||||
OBJECTS = $(patsubst protocols/%.c, protocols/%.o, $(wildcard protocols/*.c)) $(patsubst third_party/src/%.c, third_party/src/%.o, $(wildcard third_party/src/*.c)) ndpi_main.o
|
||||
|
||||
@@ -5655,3 +5655,23 @@ void NDPI_DUMP_BITMASK(NDPI_PROTOCOL_BITMASK a) {
|
||||
u_int8_t ndpi_get_api_version() {
|
||||
return(NDPI_API_VERSION);
|
||||
}
|
||||
|
||||
ndpi_proto_defaults_t* ndpi_get_proto_defaults(struct ndpi_detection_module_struct *ndpi_mod) {
|
||||
return(ndpi_mod->proto_defaults);
|
||||
}
|
||||
|
||||
u_int ndpi_get_ndpi_num_supported_protocols(struct ndpi_detection_module_struct *ndpi_mod) {
|
||||
return(ndpi_mod->ndpi_num_supported_protocols);
|
||||
}
|
||||
|
||||
u_int ndpi_get_ndpi_num_custom_protocols(struct ndpi_detection_module_struct *ndpi_mod) {
|
||||
return(ndpi_mod->ndpi_num_custom_protocols);
|
||||
}
|
||||
|
||||
u_int ndpi_get_ndpi_detection_module_size() {
|
||||
return(sizeof(struct ndpi_detection_module_struct));
|
||||
}
|
||||
|
||||
void ndpi_set_log_level(struct ndpi_detection_module_struct *ndpi_mod, u_int l) {
|
||||
ndpi_mod->ndpi_log_level = l;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user