build: exposing parameters for msgpack to json buffer
Exposing configuration parameters to determine the function
'flb_msgpack_raw_to_json_sds' buffer strategy. This parameters
can be set during build configuration in the following way :
cmake ../ -DFLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE=1.5 \
-DFLB_MSGPACK_TO_JSON_REALLOC_BUFFER_SIZE=.10
@@ -680,6 +680,19 @@ if(FLB_HAVE_ATTRIBUTE_ALLOC_SIZE)
FLB_DEFINITION(FLB_HAVE_ATTRIBUTE_ALLOC_SIZE)
endif()
+# parameters for flb_msgpack_raw_to_json_sds buffer strategy
+if (NOT DEFINED FLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE)
+ FLB_DEFINITION_VAL(FLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE 2.0)
+else()
+ FLB_DEFINITION_VAL(FLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE ${FLB_MSGPACK_TO_JSON_INIT_BUFFER_SIZE})
+endif()
+
+if (NOT DEFINED FLB_MSGPACK_TO_JSON_REALLOC_BUFFER_SIZE)
+ FLB_DEFINITION_VAL(FLB_MSGPACK_TO_JSON_REALLOC_BUFFER_SIZE 0.10)
+else()
+ FLB_DEFINITION_VAL(FLB_MSGPACK_TO_JSON_REALLOC_BUFFER_SIZE ${FLB_MSGPACK_TO_JSON_REALLOC_BUFFER_SIZE})
+endif()
+
# Build tools/xxd-c
add_subdirectory(tools/xxd-c)
