summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/connman.h1
-rw-r--r--src/error.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h
index 766058e4..f0fde967 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -42,6 +42,7 @@ DBusMessage *__connman_error_in_progress(DBusMessage *msg);
DBusMessage *__connman_error_already_connected(DBusMessage *msg);
DBusMessage *__connman_error_operation_aborted(DBusMessage *msg);
DBusMessage *__connman_error_operation_timeout(DBusMessage *msg);
+DBusMessage *__connman_error_invalid_service(DBusMessage *msg);
int __connman_selftest(void);
diff --git a/src/error.c b/src/error.c
index 844be333..af839a21 100644
--- a/src/error.c
+++ b/src/error.c
@@ -93,3 +93,8 @@ DBusMessage *__connman_error_operation_timeout(DBusMessage *msg)
"OperationTimeout", "Operation timeout");
}
+DBusMessage *__connman_error_invalid_service(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
+ "InvalidService", "Invalid service");
+}