From: Felix Fietkau Date: Mon, 5 Sep 2011 01:16:59 +0000 (+0200) Subject: add an error code for "operation not supported" X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=24505f172a36050f79bea275abc5a3945183f3e9;p=project%2Fubus.git add an error code for "operation not supported" --- diff --git a/libubus.c b/libubus.c index 3c2772c..5c6bd8a 100644 --- 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; diff --git a/ubusmsg.h b/ubusmsg.h index 1aa2fbe..794abc7 100644 --- 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 };