From bf0b1ee111621247fdd83025d02cf42ab67aba5e Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 25 Feb 2014 15:57:33 +0100 Subject: add tp_account_channel_request_set_initial_invitee_ids() --- telepathy-glib/account-channel-request.c | 27 +++++++++++++++++++++++++++ telepathy-glib/account-channel-request.h | 5 +++++ 2 files changed, 32 insertions(+) (limited to 'telepathy-glib') diff --git a/telepathy-glib/account-channel-request.c b/telepathy-glib/account-channel-request.c index 656cbd100..b8b127e23 100644 --- a/telepathy-glib/account-channel-request.c +++ b/telepathy-glib/account-channel-request.c @@ -2581,3 +2581,30 @@ tp_account_channel_request_set_conference_initial_channels ( g_ptr_array_unref (chans); } + +/** + * tp_account_channel_request_set_initial_invitee_ids: + * @self: a #TpAccountChannelRequest + * @ids: a #NULL-terminated array of contact ids + * + * Indicate that the contacts listed in @ids have to be invited to the + * conference represented by the channel which is going to be requested + * using @self. + * + * This function can't be called once @self has been used to request a + * channel. + * + * Since: UNRELEASED + */ +void +tp_account_channel_request_set_initial_invitee_ids ( + TpAccountChannelRequest *self, + const gchar * const * ids) +{ + g_return_if_fail (TP_IS_ACCOUNT_CHANNEL_REQUEST (self)); + g_return_if_fail (!self->priv->requested); + + g_hash_table_insert (self->priv->request, + g_strdup (TP_PROP_CHANNEL_INTERFACE_CONFERENCE_INITIAL_INVITEE_IDS), + tp_g_value_slice_new_boxed (G_TYPE_STRV, ids)); +} diff --git a/telepathy-glib/account-channel-request.h b/telepathy-glib/account-channel-request.h index 962c0ff5f..f414e888f 100644 --- a/telepathy-glib/account-channel-request.h +++ b/telepathy-glib/account-channel-request.h @@ -183,6 +183,11 @@ void tp_account_channel_request_set_conference_initial_channels ( TpAccountChannelRequest *self, const gchar * const * channels); +_TP_AVAILABLE_IN_0_24 +void tp_account_channel_request_set_initial_invitee_ids ( + TpAccountChannelRequest *self, + const gchar * const * ids); + /* Channel target (shared between all channel types) */ _TP_AVAILABLE_IN_0_20 -- cgit v1.2.1