summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-10-11 15:34:57 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-11-04 09:02:18 +0000
commit7a9200ca2a426f4f794a4fd43291bcd511a9420f (patch)
treeed632d2d70037d5fb1f2793d062c619f83ebffe9
parent33cd9527f7c0d1f4a2b72e8cfadc417b69590336 (diff)
ImFactory: document new_im_channel more usefully
-rw-r--r--src/im-factory.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/im-factory.c b/src/im-factory.c
index 57de5e36b..c1c58f8e1 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -332,8 +332,19 @@ im_channel_closed_cb (GabbleIMChannel *chan, gpointer user_data)
}
}
-/**
- * new_im_channel
+/*
+ * new_im_channel:
+ * @fac: the factory
+ * @handle: a contact handle, for whom a channel must not yet exist
+ * @initiator: the initiator of the channel, which should in practice be either
+ * the self handle or @handle.
+ * @request_token: if the channel is being created in response to a channel
+ * request, the associated request token; otherwise, NULL.
+ *
+ * Creates a new 1-1 text channel to a contact. Must only be called when no 1-1
+ * text channel is already open to that contact.
+ *
+ * Returns: (transfer none): a freshly-constructed channel
*/
static GabbleIMChannel *
new_im_channel (GabbleImFactory *fac,