dbus: Add __ofono_error_access_denied

This commit is contained in:
Gustavo F. Padovan 2010-11-19 19:37:08 -02:00 committed by Denis Kenzior
parent 9de85e7a78
commit b79b64439f
2 changed files with 7 additions and 0 deletions

View File

@ -342,6 +342,12 @@ DBusMessage *__ofono_error_canceled(DBusMessage *msg)
"Operation has been canceled");
}
DBusMessage *__ofono_error_access_denied(DBusMessage *msg)
{
return g_dbus_create_error(msg, OFONO_ERROR_INTERFACE ".AccessDenied",
"Operation not permitted");
}
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply)
{
DBusConnection *conn = ofono_dbus_get_connection();

View File

@ -57,6 +57,7 @@ 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_canceled(DBusMessage *msg);
DBusMessage *__ofono_error_access_denied(DBusMessage *msg);
void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply);