projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a callback for handling lost ubus connections
[project/ubus.git]
/
libubus.h
diff --git
a/libubus.h
b/libubus.h
index
2662878
..
b741e65
100644
(file)
--- a/
libubus.h
+++ b/
libubus.h
@@
-79,6
+79,8
@@
struct ubus_context {
uint32_t local_id;
uint32_t request_seq;
+ void (*connection_lost)(struct ubus_context *ctx);
+
struct {
struct ubus_msghdr hdr;
char data[UBUS_MAX_MSGLEN - sizeof(struct ubus_msghdr)];