add an error code for "operation not supported"
authorFelix Fietkau <nbd@openwrt.org>
Mon, 5 Sep 2011 01:16:59 +0000 (03:16 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 5 Sep 2011 01:16:59 +0000 (03:16 +0200)
libubus.c
ubusmsg.h

index 3c2772c18d5b23923c33cbd13cf3558cca527186..5c6bd8a3cc196ac1481af896b31cd0e79c9101b6 100644 (file)
--- a/libubus.c
+++ b/libubus.c
@@ -35,6 +35,7 @@ const char *__ubus_strerror[__UBUS_STATUS_LAST] = {
        [UBUS_STATUS_NO_DATA] = "No response",
        [UBUS_STATUS_PERMISSION_DENIED] = "Permission denied",
        [UBUS_STATUS_TIMEOUT] = "Request timed out",
+       [UBUS_STATUS_NOT_SUPPORTED] = "Operation not supported",
 };
 
 static struct blob_buf b;
index 1aa2fbe4d855ea413c228163b72356bc18536679..794abc7fd2dae15a9e928c7bb69aa30bc67b621a 100644 (file)
--- a/ubusmsg.h
+++ b/ubusmsg.h
@@ -85,6 +85,7 @@ enum ubus_msg_status {
        UBUS_STATUS_NO_DATA,
        UBUS_STATUS_PERMISSION_DENIED,
        UBUS_STATUS_TIMEOUT,
+       UBUS_STATUS_NOT_SUPPORTED,
        __UBUS_STATUS_LAST
 };