200a03816e1ccecf2256a321bb5ec4fc3f690c10
[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 const char *service;
10 struct ubus_subscriber sub;
11 udebug_config_cb cb;
12 };
13
14 void udebug_ubus_init(struct udebug_ubus *ctx, struct ubus_context *ubus,
15 const char *service, udebug_config_cb cb);
16 void udebug_ubus_free(struct udebug_ubus *ctx);