diff options
author | Denis Kenzior <denis.kenzior@intel.com> | 2009-10-22 17:11:58 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-23 17:05:53 -0500 |
commit | 729d580692a79b006ca0d12a046dc7f00516b47a (patch) | |
tree | 2079a02a433f3bfb17045a2504019bcfd6da8eb5 /src | |
parent | 0b68ad7e32f06d536d839a775a5aa07142409376 (diff) | |
download | ofono-729d580692a79b006ca0d12a046dc7f00516b47a.tar.bz2 |
Add InUse error type
Diffstat (limited to 'src')
-rw-r--r-- | src/dbus.c | 6 | ||||
-rw-r--r-- | src/ofono.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -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(); diff --git a/src/ofono.h b/src/ofono.h index c6d84bd9..7f694d7f 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -50,6 +50,7 @@ DBusMessage *__ofono_error_not_active(DBusMessage *msg); DBusMessage *__ofono_error_not_supported(DBusMessage *msg); DBusMessage *__ofono_error_timed_out(DBusMessage *msg); DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg); +DBusMessage *__ofono_error_in_use(DBusMessage *msg); void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply); |