summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-30 17:21:11 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-03-30 17:21:11 +0000
commit6accceac927f8a5451a9cab1ef885d5e0b236432 (patch)
tree25d31d1870ea58caaa5921dbd61af74bddff1645 /network
parente9e95fcbedbb256e0dbcb4f9f79cd5e7db1465fc (diff)
Add err_already_exists.
Diffstat (limited to 'network')
-rw-r--r--network/error.c8
-rw-r--r--network/error.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/network/error.c b/network/error.c
index 684bda2a..f011c496 100644
--- a/network/error.c
+++ b/network/error.c
@@ -78,3 +78,11 @@ DBusHandlerResult err_not_supported(DBusConnection *conn, DBusMessage *msg)
NETWORK_ERROR_INTERFACE ".NotSupported",
"The service is not supported by the remote device"));
}
+
+DBusHandlerResult err_already_exists(DBusConnection *conn,
+ DBusMessage *msg, const char *str)
+{
+ return send_message_and_unref(conn,
+ dbus_message_new_error(msg,
+ NETWORK_ERROR_INTERFACE ".AlreadyExists", str));
+}
diff --git a/network/error.h b/network/error.h
index 44e7690a..3022e392 100644
--- a/network/error.h
+++ b/network/error.h
@@ -35,3 +35,6 @@ DBusHandlerResult err_connection_failed(DBusConnection *conn,
DBusHandlerResult err_invalid_args(DBusConnection *conn,
DBusMessage *msg, const char *str);
DBusHandlerResult err_not_supported(DBusConnection *conn, DBusMessage *msg);
+DBusHandlerResult err_already_exists(DBusConnection *conn,
+ DBusMessage *msg, const char *str);
+