diff options
Diffstat (limited to 'hcid/dbus-error.c')
-rw-r--r-- | hcid/dbus-error.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c index 8b75efeb..079cedf6 100644 --- a/hcid/dbus-error.c +++ b/hcid/dbus-error.c @@ -41,6 +41,12 @@ DBusHandlerResult error_failed(DBusConnection *conn, DBusMessage *msg, int err) dbus_message_new_error(msg, ERROR_INTERFACE ".Failed", str)); } +DBusHandlerResult error_not_ready(DBusConnection *conn, DBusMessage *msg) +{ + return send_reply_and_unref(conn, + dbus_message_new_error(msg, ERROR_INTERFACE ".NotReady", "Adapter is not ready")); +} + DBusHandlerResult error_invalid_arguments(DBusConnection *conn, DBusMessage *msg) { return send_reply_and_unref(conn, |