ring: add debug messages for ring alloc errors
[project/udebug.git] / udebug.h
1 #include <libubox/udebug.h>
2 #include <libubus.h>
3
4 struct udebug_ubus;
5 typedef void (*udebug_config_cb)(struct udebug_ubus *ctx, struct blob_attr *data, bool enabled);
6
7 struct udebug_ubus {
8 struct ubus_context *ubus;
9 struct uloop_timeout t;
10 const char *service;
11 struct ubus_subscriber sub;
12 udebug_config_cb cb;
13 };
14
15 void udebug_ubus_init(struct udebug_ubus *ctx, struct ubus_context *ubus,
16 const char *service, udebug_config_cb cb);
17 void udebug_ubus_free(struct udebug_ubus *ctx);