libubus: add logic to reduce msgbuf data size after 16 small messages
[project/ubus.git] / libubus.h
index 78ffa38e7e3a4197fc5aedbc4a6c7c9ba09593c6..a63ce31a7ca0d3b4a13473f4cce3a6702c884e32 100644 (file)
--- a/libubus.h
+++ b/libubus.h
@@ -156,6 +156,7 @@ struct ubus_context {
 
        struct ubus_msghdr_buf msgbuf;
        uint32_t msgbuf_data_len;
+       int msgbuf_reduction_counter;
 };
 
 struct ubus_object_data {