summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-04-04 04:45:32 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-04-04 04:45:32 +0200
commit6624e3eab185cc68d0625a4ebf0e3f49fb78f69e (patch)
treeb298b1552f72099e64900e2abe82404c82820a40
parent7f0611d48b9029004eb381898fa96dffcf5b045d (diff)
downloadconnman-6624e3eab185cc68d0625a4ebf0e3f49fb78f69e.tar.gz
connman-6624e3eab185cc68d0625a4ebf0e3f49fb78f69e.tar.bz2
connman-6624e3eab185cc68d0625a4ebf0e3f49fb78f69e.zip
Add D-Bus error message for not implemented methods
-rw-r--r--src/connman.h1
-rw-r--r--src/error.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 1ee54475..220eb051 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 5556d589..1668a41d 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);
+}