dbus: Add new error types

This commit is contained in:
Philippe Nunes 2012-05-29 18:38:33 +02:00 committed by Denis Kenzior
parent 761f16394d
commit 1f4e339a13
2 changed files with 15 additions and 0 deletions

View File

@ -375,6 +375,19 @@ DBusMessage *__ofono_error_emergency_active(DBusMessage *msg)
"Emergency mode active");
}
DBusMessage *__ofono_error_incorrect_password(DBusMessage *msg)
{
return g_dbus_create_error(msg,
OFONO_ERROR_INTERFACE ".IncorrectPassword",
"Password is incorrect");
}
DBusMessage *__ofono_error_not_allowed(DBusMessage *msg)
{
return g_dbus_create_error(msg, OFONO_ERROR_INTERFACE ".NotAllowed",
"Operation is not allowed");
}
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply)
{
DBusConnection *conn = ofono_dbus_get_connection();

View File

@ -63,6 +63,8 @@ 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);
DBusMessage *__ofono_error_incorrect_password(DBusMessage *msg);
DBusMessage *__ofono_error_not_allowed(DBusMessage *msg);
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply);