diff options
-rw-r--r-- | src/dbus.c | 7 | ||||
-rw-r--r-- | src/ofono.h | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -349,6 +349,13 @@ DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg) "GPRS Attach is in progress"); } +DBusMessage *__ofono_error_not_registered(DBusMessage *msg) +{ + return g_dbus_create_error(msg, + OFONO_ERROR_INTERFACE ".NotRegistered", + "CDMA modem is not registered to the network"); +} + DBusMessage *__ofono_error_canceled(DBusMessage *msg) { return g_dbus_create_error(msg, OFONO_ERROR_INTERFACE ".Canceled", diff --git a/src/ofono.h b/src/ofono.h index bd45560d..bfb534de 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -59,6 +59,7 @@ DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg); DBusMessage *__ofono_error_in_use(DBusMessage *msg); DBusMessage *__ofono_error_not_attached(DBusMessage *msg); DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg); +DBusMessage *__ofono_error_not_registered(DBusMessage *msg); DBusMessage *__ofono_error_canceled(DBusMessage *msg); DBusMessage *__ofono_error_access_denied(DBusMessage *msg); DBusMessage *__ofono_error_emergency_active(DBusMessage *msg); |