From 6624e3eab185cc68d0625a4ebf0e3f49fb78f69e Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 4 Apr 2009 04:45:32 +0200 Subject: [PATCH] Add D-Bus error message for not implemented methods --- src/connman.h | 1 + src/error.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/connman.h b/src/connman.h index 1ee5447..220eb05 100644 --- a/src/connman.h +++ b/src/connman.h @@ -36,6 +36,7 @@ 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); +DBusMessage *__connman_error_not_implemented(DBusMessage *msg); int __connman_selftest(void); diff --git a/src/error.c b/src/error.c index 5556d58..1668a41 100644 --- a/src/error.c +++ b/src/error.c @@ -50,3 +50,9 @@ DBusMessage *__connman_error_not_supported(DBusMessage *msg) return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE ".NotSupported", NULL); } + +DBusMessage *__connman_error_not_implemented(DBusMessage *msg) +{ + return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE + ".NotImplemented", NULL); +} -- 2.7.4