aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorSimone Mainardi <mainardi@ntop.org>2017-12-11 20:15:00 +0100
committerSimone Mainardi <mainardi@ntop.org>2017-12-11 20:15:00 +0100
commitcd12a8608883f7079ff877db6b3a769860f36951 (patch)
tree43857d19368e65ca6e10bf39f4a99c5acb95db62 /src/include/ndpi_api.h
parent61bc528159ea332c0463ae2b3a056b2effce0b88 (diff)
Implements ndpi_get_category_id
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 2062974ad..9fbabc5f7 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -533,14 +533,25 @@ extern "C" {
* Return the ID of the protocol
*
* @par ndpi_mod = the detection module
- * @par proto = the ID of the protocol
- * @return the string name of the breed ID
+ * @par proto = the protocol name
+ * @return the ID of the protocol
*
*/
int ndpi_get_protocol_id(struct ndpi_detection_module_struct *ndpi_mod, char *proto);
/**
+ * Return the ID of the category
+ *
+ * @par ndpi_mod = the detection module
+ * @par proto = the category name
+ * @return the ID of the category
+ *
+ */
+ int ndpi_get_category_id(struct ndpi_detection_module_struct *ndpi_mod, char *cat);
+
+
+ /**
* Write the list of the supported protocols
*
* @par ndpi_mod = the detection module