summaryrefslogtreecommitdiff
path: root/mesh/error.h
diff options
context:
space:
mode:
authorInga Stotland <inga.stotland@intel.com>2018-12-14 13:52:39 -0800
committerBrian Gix <brian.gix@intel.com>2019-01-08 08:26:22 -0800
commitdc21082bd953e91af025143381128a13e569bd56 (patch)
tree7f19093e65fd40b5c7b9653cb1f8852bb95fe6b4 /mesh/error.h
parent82e5d87fac3f6ca905a3a58ac70549cc7065b062 (diff)
downloadbluez-dc21082bd953e91af025143381128a13e569bd56.tar.gz
mesh: Internal errors
Add error codes that map to specific faults that may occur while using the mesh D-Bus API.
Diffstat (limited to 'mesh/error.h')
-rw-r--r--mesh/error.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/mesh/error.h b/mesh/error.h
new file mode 100644
index 000000000..a6aaa2fef
--- /dev/null
+++ b/mesh/error.h
@@ -0,0 +1,34 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2018 Intel Corporation. All rights reserved.
+ *
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ */
+
+/*
+ * Important: Changes in this table must be reflected in the
+ * the entries of error_table[] in dbus.c
+ */
+enum mesh_error {
+ MESH_ERROR_NONE,
+ MESH_ERROR_FAILED,
+ MESH_ERROR_NOT_AUTHORIZED,
+ MESH_ERROR_NOT_FOUND,
+ MESH_ERROR_INVALID_ARGS,
+ MESH_ERROR_BUSY,
+ MESH_ERROR_ALREADY_EXISTS,
+ MESH_ERROR_DOES_NOT_EXIST,
+ MESH_ERROR_CANCELED,
+};