diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 13:23:13 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 13:23:13 -0600 |
commit | e1e44e772a789313956e819711d45f8d0d6f0d8b (patch) | |
tree | 4a7c4aec6993003e740c140dc1286e0236e663a2 /src/dbus.c | |
parent | 39b043a40a468756ccab0276cd38c0451a668e7d (diff) | |
download | ofono-e1e44e772a789313956e819711d45f8d0d6f0d8b.tar.bz2 |
Refactor: Send NotAttached error
If one tries to activate the context and we're currently not attached to
GPRS, report a NotAttached error instead of a failure
Diffstat (limited to 'src/dbus.c')
-rw-r--r-- | src/dbus.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -316,6 +316,12 @@ DBusMessage *__ofono_error_in_use(DBusMessage *msg) "The resource is currently in use"); } +DBusMessage *__ofono_error_not_attached(DBusMessage *msg) +{ + return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".NotAttached", + "GPRS is not attached"); +} + void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply) { DBusConnection *conn = ofono_dbus_get_connection(); |