dbus: Add Terminated error

This commit is contained in:
Philippe Nunes 2012-09-06 16:21:45 +02:00 committed by Denis Kenzior
parent f53d219726
commit cf211d17e3
2 changed files with 9 additions and 0 deletions

View File

@ -409,6 +409,14 @@ DBusMessage *__ofono_error_not_recognized(DBusMessage *msg)
"String not recognized as USSD/SS");
}
DBusMessage *__ofono_error_network_terminated(DBusMessage *msg)
{
return g_dbus_create_error(msg, OFONO_ERROR_INTERFACE
".Terminated",
"Operation was terminated by the"
" network");
}
DBusMessage *__ofono_error_from_error(const struct ofono_error *error,
DBusMessage *msg)
{

View File

@ -66,6 +66,7 @@ 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_network_terminated(DBusMessage *msg);
DBusMessage *__ofono_error_from_error(const struct ofono_error *error,
DBusMessage *msg);