diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-12-06 17:10:40 -0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-12-07 22:58:32 +0200 |
commit | 696c18c48f9648274c375a77a70a45f5f31053fb (patch) | |
tree | f5112863031a8c12727c8d9a8014fb0d35de952d /src/error.c | |
parent | 1e35abda9f9ad4510d19da6c14b1a50d6dc02c7d (diff) | |
download | bluez-696c18c48f9648274c375a77a70a45f5f31053fb.tar.gz |
Create btd_error_invalid_args()
DBus error handling in BlueZ is a mess. This is the first patch to unify
all DBus error handling like in ConnMan and oFono. This unifies all
.InvalidArguments errors.
Diffstat (limited to 'src/error.c')
-rw-r--r-- | src/error.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c index c1a2fbf14..08079659f 100644 --- a/src/error.c +++ b/src/error.c @@ -48,3 +48,10 @@ DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, return DBUS_HANDLER_RESULT_HANDLED; } + +DBusMessage *btd_error_invalid_args(DBusMessage *msg) +{ + return g_dbus_create_error(msg, ERROR_INTERFACE + ".InvalidArguments", + "Invalid arguments in method call"); +} |