diff options
-rw-r--r-- | src/dbus.c | 6 | ||||
-rw-r--r-- | src/ofono.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -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); |