aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2017-09-19 22:39:00 +0200
committerLuca Deri <deri@ntop.org>2017-09-19 22:39:00 +0200
commit9fb5981128b3d2bc75e72cc805df918b3944b92e (patch)
tree5a190fdc55f518017b30d85717988a6e230e3bb0 /src/include/ndpi_api.h
parent1a4e57e7366685e5ece5ed8576155c5e7c934efb (diff)
Added ndpi_category_set_name() API call
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 5b0fe617b..7d9c1bab7 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -443,11 +443,24 @@ extern "C" {
/**
* Get protocol category as string
*
+ * @par mod = the detection module
* @par category = the category associated to the protocol
* @return the string name of the category
*
*/
- const char* ndpi_category_str(ndpi_protocol_category_t category);
+ const char* ndpi_category_get_name(struct ndpi_detection_module_struct *ndpi_mod,
+ ndpi_protocol_category_t category);
+
+ /**
+ * Set protocol category string
+ *
+ * @par mod = the detection module
+ * @par category = the category associated to the protocol
+ * @paw name = the string name of the category
+ *
+ */
+ void ndpi_category_set_name(struct ndpi_detection_module_struct *ndpi_mod,
+ ndpi_protocol_category_t category, char *name);
/**
* Get protocol category