summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2014-01-24 16:34:21 -0500
committerXavier Claessens <xavier.claessens@collabora.co.uk>2014-02-09 12:33:56 -0500
commitd969e9589601b45bfaab65ad545d624668517557 (patch)
treed1780c18015e8bb03464ff0757dcee782af15f10
parentcf3bc76f49390e9fa72cbf7c1c61a85e9e4daaba (diff)
Protocol: implement the "account-path-suffix" connection parameter
-rw-r--r--src/protocol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index d89b8a11b..ce2f59b4a 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -181,6 +181,9 @@ static TpCMParamSpec jabber_params[] = {
{ "extra-certificate-identities", "as", 0,
0, NULL, 0 /* unused */, NULL, NULL },
+ { "account-path-suffix", "s", G_TYPE_STRING,
+ 0, NULL, 0 /* unused */, NULL, NULL },
+
{ NULL, NULL, 0, 0, NULL, 0 }
};
@@ -277,6 +280,8 @@ new_connection (TpBaseProtocol *protocol,
conn = g_object_new (GABBLE_TYPE_CONNECTION,
"protocol", PROTOCOL_NAME,
"password", tp_asv_get_string (params, "password"),
+ "account-path-suffix", tp_asv_get_string (params,
+ "account-path-suffix"),
NULL);
/* split up account into username, stream-server and resource */