summaryrefslogtreecommitdiffstats
path: root/src/dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbus.c')
-rw-r--r--src/dbus.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dbus.c b/src/dbus.c
index 52e3a685..5cccc328 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -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();