diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-09-06 14:17:44 +0100 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-09-07 15:27:05 +0100 |
commit | 70580a776d7b54a950042ea6c08b4949d96f2332 (patch) | |
tree | 6306630b83b8d5a4bb6a9d21dddaf1ccfd3d1767 | |
parent | 003e6186d70640c32b85cdf5bc920cbd94882e43 (diff) |
connection: add get_session public function
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | gabble/connection.h | 3 | ||||
-rw-r--r-- | src/connection.c | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gabble/connection.h b/gabble/connection.h index 06af4c4f..040b11b0 100644 --- a/gabble/connection.h +++ b/gabble/connection.h @@ -55,6 +55,9 @@ gchar *gabble_connection_add_sidecar_own_caps ( const GabbleCapabilitySet *cap_set, const GPtrArray *identities) G_GNUC_WARN_UNUSED_RESULT; +WockySession *gabble_connection_get_session ( + GabbleConnection *connection); + gchar *gabble_connection_get_full_jid (GabbleConnection *conn); G_END_DECLS diff --git a/src/connection.c b/src/connection.c index 327f9998..b9ec972a 100644 --- a/src/connection.c +++ b/src/connection.c @@ -1374,6 +1374,14 @@ WockyPorter *gabble_connection_dup_porter (GabbleConnection *conn) return NULL; } +WockySession * +gabble_connection_get_session (GabbleConnection *connection) +{ + g_return_val_if_fail (GABBLE_IS_CONNECTION (connection), NULL); + + return connection->session; +} + /** * _gabble_connection_send * |