aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 78ac1d605..e8b1b06b5 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -212,7 +212,7 @@ extern "C" {
*
*/
struct ndpi_detection_module_struct *ndpi_init_detection_module_ext(struct ndpi_global_context *g_ctx,
- const NDPI_INTERNAL_PROTOCOL_BITMASK *detection_bitmask);
+ const struct ndpi_bitmask *detection_bitmask);
/**
* Completes the initialization (2nd step)
@@ -880,6 +880,14 @@ extern "C" {
u_int ndpi_get_num_protocols(struct ndpi_detection_module_struct *ndpi_mod);
/**
+ * Get the number of the internal protocols.
+ *
+ * @return the number of protocols
+ *
+ */
+ u_int ndpi_get_num_internal_protocols(void);
+
+ /**
* Get the nDPI version release
*
* @return the NDPI_GIT_RELEASE
@@ -2433,6 +2441,16 @@ extern "C" {
*/
int ndpi_memcasecmp(const void *s1, const void *s2, size_t n);
+
+ int ndpi_bitmask_alloc(struct ndpi_bitmask *b, u_int16_t max_bits);
+ void ndpi_bitmask_dealloc(struct ndpi_bitmask *b);
+ void ndpi_bitmask_set(struct ndpi_bitmask *b, u_int16_t bit);
+ void ndpi_bitmask_clear(struct ndpi_bitmask *b, u_int16_t bit);
+ int ndpi_bitmask_is_set(const struct ndpi_bitmask *b, u_int16_t bit);
+ void ndpi_bitmask_set_all(struct ndpi_bitmask *b);
+ void ndpi_bitmask_reset(struct ndpi_bitmask *b);
+ struct ndpi_bitmask *ndpi_bitmask_clone(const struct ndpi_bitmask *b);
+
#ifdef __cplusplus
}
#endif