summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dbus.c6
-rw-r--r--src/ofono.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/dbus.c b/src/dbus.c
index 4ae6969d..3f5c12dc 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -403,6 +403,12 @@ DBusMessage *__ofono_error_not_allowed(DBusMessage *msg)
"Operation is not allowed");
}
+DBusMessage *__ofono_error_not_recognized(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, OFONO_ERROR_INTERFACE ".NotRecognized",
+ "String not recognized as USSD/SS");
+}
+
DBusMessage *__ofono_error_from_error(const struct ofono_error *error,
DBusMessage *msg)
{
diff --git a/src/ofono.h b/src/ofono.h
index f0e10726..48e819c7 100644
--- a/src/ofono.h
+++ b/src/ofono.h
@@ -65,6 +65,7 @@ DBusMessage *__ofono_error_access_denied(DBusMessage *msg);
DBusMessage *__ofono_error_emergency_active(DBusMessage *msg);
DBusMessage *__ofono_error_incorrect_password(DBusMessage *msg);
DBusMessage *__ofono_error_not_allowed(DBusMessage *msg);
+DBusMessage *__ofono_error_not_recognized(DBusMessage *msg);
DBusMessage *__ofono_error_from_error(const struct ofono_error *error,
DBusMessage *msg);