diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-08-15 14:55:55 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-08-15 14:55:55 +0000 |
commit | a23442be507d9384175898a28fb72c35f790fbd1 (patch) | |
tree | 3dd4230b91278f28cba1a69fe23ce663c15e462b /hcid/dbus-error.c | |
parent | af123a9010de988e3dc9b2f2a67f3a140e309c3f (diff) |
load/set the default options after HCI_DEV_UP
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, |