summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-09-28 17:37:06 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-03 09:10:42 -0500
commit80daf4dc54a383ff07263a66b2311732232c8d58 (patch)
tree9e50dc679f25a952f3982969e9490b80981aab59
parent07f5febe306469d140a7a8ca06ba0f57f6405a50 (diff)
downloadofono-80daf4dc54a383ff07263a66b2311732232c8d58.tar.bz2
stktest: Add additional error types
-rw-r--r--tools/stktest.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index aac8e9a9..7c3ccb57 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -39,6 +39,7 @@
#define OFONO_SERVICE "org.ofono"
#define STKTEST_PATH "/stktest"
#define STKTEST_ERROR "org.ofono.stktest.Error"
+#define OFONO_ERROR "org.ofono.Error"
#define OFONO_MANAGER_INTERFACE OFONO_SERVICE ".Manager"
#define OFONO_MODEM_INTERFACE OFONO_SERVICE ".Modem"
#define OFONO_STK_INTERFACE OFONO_SERVICE ".SimToolkit"
@@ -98,6 +99,30 @@ static DBusMessage *stktest_error_invalid_args(DBusMessage *msg)
"Invalid arguments provided");
}
+static DBusMessage *stktest_error_failed(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, STKTEST_ERROR ".Failed",
+ "Operation failed");
+}
+
+static DBusMessage *stktest_error_end_session(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, OFONO_ERROR ".EndSession",
+ "End Session Request");
+}
+
+static DBusMessage *stktest_error_go_back(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, OFONO_ERROR ".GoBack",
+ "Go Back Request");
+}
+
+static DBusMessage *stktest_error_busy(DBusMessage *msg)
+{
+ return g_dbus_create_error(msg, OFONO_ERROR ".Busy",
+ "UI Busy");
+}
+
static DBusMessage *agent_release(DBusConnection *conn, DBusMessage *msg,
void *data)
{