diff --git a/src/dbus.c b/src/dbus.c index 5aa4bcf1..09114c34 100644 --- a/src/dbus.c +++ b/src/dbus.c @@ -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);