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 e13c3de7..f2c26aea 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -37,6 +37,7 @@ 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);
+DBusMessage *__connman_error_no_carrier(DBusMessage *msg);
int __connman_selftest(void);
diff --git a/src/error.c b/src/error.c
index 1668a41d..f8f6fdc1 100644
--- a/src/error.c
+++ b/src/error.c
@@ -56,3 +56,9 @@ DBusMessage *__connman_error_not_implemented(DBusMessage *msg)
return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
".NotImplemented", NULL);
}
+
+DBusMessage *__connman_error_no_carrier(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE
+ ".NoCarrier", NULL);
+}