summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2010-07-14 12:56:28 +0200
committerXavier Claessens <xclaesse@gmail.com>2010-07-14 12:56:28 +0200
commitdbc695a0a049422a99ba4100b3bff80d877094ee (patch)
tree9195d49def8292b3025d43329359f77f6e395bdb
parent78db5377c63719c7b6533f0283037a9b2cabdcbd (diff)
Rename service name to "reverse-ssh" since we are not offering an sshd socket
-rw-r--r--src/TelepathySSH.client2
-rw-r--r--src/client.c3
-rw-r--r--src/service.c12
3 files changed, 11 insertions, 6 deletions
diff --git a/src/TelepathySSH.client b/src/TelepathySSH.client
index a7f4945..2721ac5 100644
--- a/src/TelepathySSH.client
+++ b/src/TelepathySSH.client
@@ -4,6 +4,6 @@ Interfaces=org.freedesktop.Telepathy.Client.Handler
[org.freedesktop.Telepathy.Client.Handler.HandlerChannelFilter 0]
org.freedesktop.Telepathy.Channel.ChannelType s=org.freedesktop.Telepathy.Channel.Type.StreamTube
org.freedesktop.Telepathy.Channel.TargetHandleType u=1
-org.freedesktop.Telepathy.Channel.Type.StreamTube.Service s=ssh
+org.freedesktop.Telepathy.Channel.Type.StreamTube.Service s=reverse-ssh
org.freedesktop.Telepathy.Channel.Requested b=false
diff --git a/src/client.c b/src/client.c
index 0659c8d..3499862 100644
--- a/src/client.c
+++ b/src/client.c
@@ -355,7 +355,8 @@ request_channel (RequestData *data)
TP_HANDLE_TYPE_CONTACT,
TP_PROP_CHANNEL_TARGET_ID, G_TYPE_STRING,
data->contact_id,
- TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE, G_TYPE_STRING, "ssh",
+ TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE, G_TYPE_STRING,
+ "reverse-ssh",
NULL);
tp_cli_channel_dispatcher_call_create_channel (dispatcher, -1,
diff --git a/src/service.c b/src/service.c
index e372156..2a697f3 100644
--- a/src/service.c
+++ b/src/service.c
@@ -169,10 +169,14 @@ main (gint argc, gchar *argv[])
FALSE, got_channel_cb, NULL, NULL);
tp_base_client_take_handler_filter (client, tp_asv_new (
- TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_STREAM_TUBE,
- TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_CONTACT,
- TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE, G_TYPE_STRING, "ssh",
- TP_PROP_CHANNEL_REQUESTED, G_TYPE_BOOLEAN, FALSE,
+ TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
+ TP_IFACE_CHANNEL_TYPE_STREAM_TUBE,
+ TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT,
+ TP_HANDLE_TYPE_CONTACT,
+ TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE, G_TYPE_STRING,
+ "reverse-ssh",
+ TP_PROP_CHANNEL_REQUESTED, G_TYPE_BOOLEAN,
+ FALSE,
NULL));
if (!tp_base_client_register (client, &error))