diff options
author | Alfredo Cardigliano <cardigliano@ntop.org> | 2021-03-04 10:31:03 +0100 |
---|---|---|
committer | Alfredo Cardigliano <cardigliano@ntop.org> | 2021-03-04 10:31:03 +0100 |
commit | 73e434857037898ca13c763dcb6d0deb18150042 (patch) | |
tree | 4c13f059731edc9e6061b52b1efb6c7b197f2953 /src/include | |
parent | 0f8a9948415bceac84148e1965e12e3f19c5050e (diff) |
Add ndpi_serialize_binary_boolean for consistency. Fix comments.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ndpi_api.h.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h.in b/src/include/ndpi_api.h.in index 0e6a50518..6a4b18366 100644 --- a/src/include/ndpi_api.h.in +++ b/src/include/ndpi_api.h.in @@ -1254,7 +1254,17 @@ extern "C" { int ndpi_serialize_string_float(ndpi_serializer *serializer, const char *key, float value, const char *format /* e.f. "%.2f" */); /** - * Serialize a string key and a boolean value + * Serialize an unterminated string key and a boolean value (JSON/CSV only, not supported by TLV) + * @param serializer The serializer handle + * @param key The field name or ID + * @param klen The key length + * @param value The field value + * @return 0 on success, a negative number otherwise + */ + int ndpi_serialize_binary_boolean(ndpi_serializer *_serializer, const char *key, u_int16_t klen, u_int8_t value); + + /** + * Serialize a string key and a boolean value (JSON/CSV only, not supported by TLV) * @param serializer The serializer handle * @param key The field name or ID * @param value The field value |