projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
24505f1
)
add an error message for "unknown error"
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 5 Sep 2011 01:20:07 +0000
(
03:20
+0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 5 Sep 2011 01:20:07 +0000
(
03:20
+0200)
libubus.c
patch
|
blob
|
history
ubusmsg.h
patch
|
blob
|
history
diff --git
a/libubus.c
b/libubus.c
index
5c6bd8a
..
aed615d
100644
(file)
--- a/
libubus.c
+++ b/
libubus.c
@@
-36,6
+36,7
@@
const char *__ubus_strerror[__UBUS_STATUS_LAST] = {
[UBUS_STATUS_PERMISSION_DENIED] = "Permission denied",
[UBUS_STATUS_TIMEOUT] = "Request timed out",
[UBUS_STATUS_NOT_SUPPORTED] = "Operation not supported",
+ [UBUS_STATUS_UNKNOWN_ERROR] = "Unknown error",
};
static struct blob_buf b;
diff --git
a/ubusmsg.h
b/ubusmsg.h
index
794abc7
..
a0681e1
100644
(file)
--- a/
ubusmsg.h
+++ b/
ubusmsg.h
@@
-86,6
+86,7
@@
enum ubus_msg_status {
UBUS_STATUS_PERMISSION_DENIED,
UBUS_STATUS_TIMEOUT,
UBUS_STATUS_NOT_SUPPORTED,
+ UBUS_STATUS_UNKNOWN_ERROR,
__UBUS_STATUS_LAST
};