diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 13:24:20 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-11-18 13:24:20 -0600 |
commit | 9777d244eca1e935589058851ed2b011ce3287d0 (patch) | |
tree | 3fd37d0cef8a33757bf9e4c7ac137548aa788617 /src/dbus.c | |
parent | e1e44e772a789313956e819711d45f8d0d6f0d8b (diff) | |
download | ofono-9777d244eca1e935589058851ed2b011ce3287d0.tar.bz2 |
Report AttachInProgress Error
If one tries to activate a context and we're currently attaching or
detaching from GPRS, report the AttachInProgress error
Diffstat (limited to 'src/dbus.c')
-rw-r--r-- | src/dbus.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -322,6 +322,13 @@ DBusMessage *__ofono_error_not_attached(DBusMessage *msg) "GPRS is not attached"); } +DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg) +{ + return g_dbus_create_error(msg, + DBUS_GSM_ERROR_INTERFACE ".AttachInProgress", + "GPRS Attach is in progress"); +} + void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply) { DBusConnection *conn = ofono_dbus_get_connection(); |