From f86bc5ebdec1c89339349b5d5e65f31490fe3e30 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 16 Aug 2010 10:30:03 -0500 Subject: [PATCH] dbus: Add Canceled error --- src/dbus.c | 6 ++++++ src/ofono.h | 1 + 2 files changed, 7 insertions(+) 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);