summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 05b3e890..9dbde221 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -39,6 +39,7 @@ DBusMessage *__connman_error_not_supported(DBusMessage *msg);
DBusMessage *__connman_error_not_implemented(DBusMessage *msg);
DBusMessage *__connman_error_no_carrier(DBusMessage *msg);
DBusMessage *__connman_error_in_progress(DBusMessage *msg);
+DBusMessage *__connman_error_operation_aborted(DBusMessage *msg);
int __connman_selftest(void);
diff --git a/src/error.c b/src/error.c
index 6e99166d..dd299fbb 100644
--- a/src/error.c
+++ b/src/error.c
@@ -74,3 +74,9 @@ DBusMessage *__connman_error_in_progress(DBusMessage *msg)
".InProgress", NULL);
}
+
+DBusMessage *__connman_error_operation_aborted(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
+ "OperationAborted", NULL);
+}