diff options
Diffstat (limited to 'hcid/dbus-error.c')
-rw-r--r-- | hcid/dbus-error.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c index 3944ffec..ba4e1ebc 100644 --- a/hcid/dbus-error.c +++ b/hcid/dbus-error.c @@ -97,6 +97,13 @@ DBusHandlerResult error_not_available(DBusConnection *conn, DBusMessage *msg) "Not available")); } +DBusHandlerResult error_not_supported(DBusConnection *conn, DBusMessage *msg) +{ + return send_reply_and_unref(conn, + dbus_message_new_error(msg, ERROR_INTERFACE ".NotSupported", + "Not supported")); +} + DBusHandlerResult error_request_deferred(DBusConnection *conn, DBusMessage *msg) { return send_reply_and_unref(conn, @@ -237,6 +244,11 @@ DBusHandlerResult error_service_search_in_progress(DBusConnection *conn, DBusMes return error_in_progress(conn, msg, "Service search in progress"); } +DBusHandlerResult error_audit_already_exists(DBusConnection *conn, DBusMessage *msg) +{ + return error_already_exists(conn, msg, "Audit already performed"); +} + static const char *strsdperror(int err) { switch (err) { |