summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-error.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-03-09 18:28:54 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-03-09 18:28:54 +0000
commit45bf9fe5ed606eb9bb3433cecb7a8b222ce15864 (patch)
tree2f095c502e30b893ca46b9f76a05e0c338b5a93b /hcid/dbus-error.c
parent4bac26fbcf785c3a438ac3b2c2edb1227a800023 (diff)
Add another bunch of error functions
Diffstat (limited to 'hcid/dbus-error.c')
-rw-r--r--hcid/dbus-error.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c
index ae8af500..2e1c50ed 100644
--- a/hcid/dbus-error.c
+++ b/hcid/dbus-error.c
@@ -191,5 +191,27 @@ DBusMessage *error_no_such_adapter(DBusMessage *msg)
DBusMessage *error_unknown_address(DBusMessage *msg)
{
return dbus_message_new_error(msg, ERROR_INTERFACE ".UnknownAddress",
- "Device address is unknown");
+ "Unknown address");
+}
+
+DBusMessage *error_not_available(DBusMessage *msg)
+{
+ return dbus_message_new_error(msg, ERROR_INTERFACE ".NotAvailable",
+ "Not available");
+}
+
+DBusMessage *error_not_connected(DBusMessage *msg)
+{
+ return dbus_message_new_error(msg, ERROR_INTERFACE ".NotConnected",
+ "Not connected");
+}
+
+static DBusMessage *error_in_progress(DBusMessage *msg, const char *str)
+{
+ return dbus_message_new_error(msg, ERROR_INTERFACE ".InProgress", str);
+}
+
+DBusMessage *error_bonding_in_progress(DBusMessage *msg)
+{
+ return error_in_progress(msg, "Bonding in progress");
}