Add a new SIM not ready error

This commit is contained in:
Denis Kenzior 2009-08-18 17:14:44 -05:00
parent 2b7cd7dede
commit a45007f91d
2 changed files with 7 additions and 0 deletions

View File

@ -224,6 +224,12 @@ DBusMessage *__ofono_error_timed_out(DBusMessage *msg)
"Operation failure due to timeout");
}
DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg)
{
return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".SimNotReady",
"SIM is not ready or not inserted");
}
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply)
{
DBusConnection *conn = ofono_dbus_get_connection();

View File

@ -49,6 +49,7 @@ DBusMessage *__ofono_error_not_found(DBusMessage *msg);
DBusMessage *__ofono_error_not_active(DBusMessage *msg);
DBusMessage *__ofono_error_not_supported(DBusMessage *msg);
DBusMessage *__ofono_error_timed_out(DBusMessage *msg);
DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg);
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply);