summaryrefslogtreecommitdiffstats
path: root/input/main.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-05-29 09:04:32 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-05-29 09:04:32 +0000
commitf0b4cc6f3b05f3ee1b963927acd5826ca99fa179 (patch)
tree7ae36304a6af70c950168c317013a3789d9ac707 /input/main.c
parent2cd3aa2618dedd8d5683ccdc7caaafaed03b9364 (diff)
Add missing method skeletons
Diffstat (limited to 'input/main.c')
-rw-r--r--input/main.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/input/main.c b/input/main.c
index 06a950ad..7953e4b8 100644
--- a/input/main.c
+++ b/input/main.c
@@ -45,15 +45,32 @@ static DBusMessage *input_connect(DBusConnection *conn,
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
+static DBusMessage *input_cancel_connect(DBusConnection *conn,
+ DBusMessage *msg, void *user_data)
+{
+ return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
+}
+
static DBusMessage *input_disconnect(DBusConnection *conn,
DBusMessage *msg, void *user_data)
{
return g_dbus_create_reply(msg, DBUS_TYPE_INVALID);
}
+static DBusMessage *input_is_connected(DBusConnection *conn,
+ DBusMessage *msg, void *user_data)
+{
+ dbus_bool_t connected = FALSE;
+
+ return g_dbus_create_reply(msg, DBUS_TYPE_BOOLEAN, &connected,
+ DBUS_TYPE_INVALID);
+}
+
static GDBusMethodTable input_methods[] = {
- { "Connect", "", "", input_connect },
- { "Disconnect", "", "", input_disconnect },
+ { "Connect", "", "", input_connect },
+ { "CancelConnect", "", "", input_cancel_connect },
+ { "Disconnect", "", "", input_disconnect },
+ { "IsConnected", "", "b", input_is_connected },
{ }
};