diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-25 19:09:11 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-25 19:09:11 +0100 |
commit | 4cd41ba34edb0575535c564110fcf72aa837693d (patch) | |
tree | 832415e981defbc3b130c01f0f2e692d2b89cd63 /src | |
parent | a78d60bdd0986e79f453fe1cf41a79f8c3a68eb3 (diff) | |
download | connman-4cd41ba34edb0575535c564110fcf72aa837693d.tar.gz connman-4cd41ba34edb0575535c564110fcf72aa837693d.tar.bz2 connman-4cd41ba34edb0575535c564110fcf72aa837693d.zip |
Add not supported error and use it
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.h | 1 | ||||
-rw-r--r-- | src/device.c | 2 | ||||
-rw-r--r-- | src/error.c | 6 |
3 files changed, 8 insertions, 1 deletions
diff --git a/src/connman.h b/src/connman.h index 175a6cc1..44ff9543 100644 --- a/src/connman.h +++ b/src/connman.h @@ -33,6 +33,7 @@ void __connman_dbus_cleanup(void); DBusMessage *__connman_error_failed(DBusMessage *msg); DBusMessage *__connman_error_invalid_arguments(DBusMessage *msg); DBusMessage *__connman_error_permission_denied(DBusMessage *msg); +DBusMessage *__connman_error_not_supported(DBusMessage *msg); int __connman_selftest(void); diff --git a/src/device.c b/src/device.c index 561cd358..71e4dc2b 100644 --- a/src/device.c +++ b/src/device.c @@ -238,7 +238,7 @@ static DBusMessage *propose_scan(DBusConnection *conn, { DBG("conn %p", conn); - return __connman_error_failed(msg); + return __connman_error_not_supported(msg); } static GDBusMethodTable device_methods[] = { diff --git a/src/error.c b/src/error.c index 21606cbc..a78c7990 100644 --- a/src/error.c +++ b/src/error.c @@ -44,3 +44,9 @@ DBusMessage *__connman_error_permission_denied(DBusMessage *msg) return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE ".PermissionDenied", NULL); } + +DBusMessage *__connman_error_not_supported(DBusMessage *msg) +{ + return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE + ".NotSupported", NULL); +} |