diff options
-rw-r--r-- | src/dbus.c | 6 | ||||
-rw-r--r-- | src/ofono.h | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -336,6 +336,12 @@ DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg) "GPRS Attach is in progress"); } +DBusMessage *__ofono_error_canceled(DBusMessage *msg) +{ + return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".Canceled", + "Operation has been canceled"); +} + 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 aaa01d93..4a42f0c4 100644 --- a/src/ofono.h +++ b/src/ofono.h @@ -57,6 +57,7 @@ DBusMessage *__ofono_error_sim_not_ready(DBusMessage *msg); DBusMessage *__ofono_error_in_use(DBusMessage *msg); DBusMessage *__ofono_error_not_attached(DBusMessage *msg); DBusMessage *__ofono_error_attach_in_progress(DBusMessage *msg); +DBusMessage *__ofono_error_canceled(DBusMessage *msg); void __ofono_dbus_pending_reply(DBusMessage **msg, DBusMessage *reply); |