libubus: add logic to reduce msgbuf data size after 16 small messages
[project/ubus.git] / libubus.h
index 33a99aafd317c8d4680324a62e6566c5630412b2..a63ce31a7ca0d3b4a13473f4cce3a6702c884e32 100644 (file)
--- a/libubus.h
+++ b/libubus.h
@@ -155,6 +155,8 @@ struct ubus_context {
        void (*connection_lost)(struct ubus_context *ctx);
 
        struct ubus_msghdr_buf msgbuf;
+       uint32_t msgbuf_data_len;
+       int msgbuf_reduction_counter;
 };
 
 struct ubus_object_data {