summaryrefslogtreecommitdiff
path: root/src/error.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-07-24 00:58:37 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-07-24 00:58:37 +0200
commit4973082ad0da2c1f4b4f5e0815a1525e2a991cdc (patch)
tree98e5b36b4c1a91349301bb4a90cdefc8bd2a5f64 /src/error.c
parent90af3934ffbb9df5ab68d2b0b3f404488ff48686 (diff)
downloadconnman-4973082ad0da2c1f4b4f5e0815a1525e2a991cdc.tar.gz
connman-4973082ad0da2c1f4b4f5e0815a1525e2a991cdc.tar.bz2
connman-4973082ad0da2c1f4b4f5e0815a1525e2a991cdc.zip
Add error codes for already enabled and disabled technologies
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index fe1251d7..ccdd9531 100644
--- a/src/error.c
+++ b/src/error.c
@@ -95,6 +95,20 @@ DBusMessage *__connman_error_in_progress(DBusMessage *msg)
".InProgress", "In progress");
}
+DBusMessage *__connman_error_already_enabled(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
+ ".AlreadyEnabled", "Already enabled");
+
+}
+
+DBusMessage *__connman_error_already_disabled(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
+ ".AlreadyDisabled", "Already disabled");
+
+}
+
DBusMessage *__connman_error_already_connected(DBusMessage *msg)
{
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE