Added ndpi_serialize_string_string_len() APi call

Fixed CSV string serialization
This commit is contained in:
Luca Deri
2022-02-08 22:17:26 +01:00
parent be5a29ba9d
commit 9838ceb7cd
2 changed files with 32 additions and 10 deletions
+11
View File
@@ -1269,6 +1269,17 @@ extern "C" {
*/
int ndpi_serialize_string_string(ndpi_serializer *serializer, const char *key, const char *value);
/**
* Serialize a string key and a string value
* @param serializer The serializer handle
* @param key The field name or ID
* @param value The field value
* @param value_len The field value length
* @return 0 on success, a negative number otherwise
*/
int ndpi_serialize_string_string_len(ndpi_serializer *serializer, const char *key,
const char *value, u_int16_t value_len);
/**
* Serialize a string key and an unterminated string value
* @param serializer The serializer handle