summaryrefslogtreecommitdiff
path: root/mesh/dbus.c
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2020-06-10 10:11:18 -0700
committerBrian Gix <brian.gix@intel.com>2020-06-10 10:27:17 -0700
commite5179f9fe59765606e7c806dccab2753e3297c1b (patch)
tree2c04928b61612b4a39c712565aa8f55e6afe3e92 /mesh/dbus.c
parent29ab37c76aa7a393b4052e172e626e6ab17de445 (diff)
downloadbluez-e5179f9fe59765606e7c806dccab2753e3297c1b.tar.gz
mesh: Make "Busy" and "InProgress" to be distinct errors
This separates "Busy" and "InProgress" error codes: MESH_ERROR_IN_PROGRESS maps to org.bluez.mesh.Error.InProgress MESH_ERROR_BUSY maps to org.bluez.mesh.Error.Busy Minor API change: UpdateAppKey() returns "InProgress" error instead of "Busy"
Diffstat (limited to 'mesh/dbus.c')
-rw-r--r--mesh/dbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesh/dbus.c b/mesh/dbus.c
index bf0f73bd9..83ae22c9f 100644
--- a/mesh/dbus.c
+++ b/mesh/dbus.c
@@ -56,7 +56,8 @@ static struct error_entry const error_table[] =
{ ERROR_INTERFACE ".NotAuthorized", "Permission denied"},
{ ERROR_INTERFACE ".NotFound", "Object not found"},
{ ERROR_INTERFACE ".InvalidArgs", "Invalid arguments"},
- { ERROR_INTERFACE ".InProgress", "Already in progress"},
+ { ERROR_INTERFACE ".InProgress", "Operation already in progress"},
+ { ERROR_INTERFACE ".Busy", "Busy"},
{ ERROR_INTERFACE ".AlreadyExists", "Already exists"},
{ ERROR_INTERFACE ".DoesNotExist", "Does not exist"},
{ ERROR_INTERFACE ".Canceled", "Operation canceled"},