From 729d580692a79b006ca0d12a046dc7f00516b47a Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 22 Oct 2009 17:11:58 -0500 Subject: Add InUse error type --- src/dbus.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dbus.c') diff --git a/src/dbus.c b/src/dbus.c index 5308ab15..b74481fb 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -310,6 +310,12 @@ DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg) "SIM is not ready or not inserted"); } +DBusMessage *__ofono_error_in_use(DBusMessage *msg) +{ + return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".InUse", + "The resource is currently in use"); +} + void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply) { DBusConnection *conn = ofono_dbus_get_connection(); -- cgit v1.2.3