Implements ndpi_get_category_id

This commit is contained in:
Simone Mainardi
2017-12-11 20:15:00 +01:00
parent 61bc528159
commit cd12a86088
3 changed files with 30 additions and 2 deletions
+13 -2
View File
@@ -533,13 +533,24 @@ 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
*