Function ndpi_load_categories_file

Function Documentation

int ndpi_load_categories_file(struct ndpi_detection_module_struct *ndpi_str, const char *path, void *user_data)

Read a file and load the categories

ndpi_mod = the detection module
path = the path of the file
user_data = pointer to some user data value
Return
0 if the file is loaded correctly; -1 else