diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-25 15:57:33 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-02-26 10:31:07 +0100 |
commit | bf0b1ee111621247fdd83025d02cf42ab67aba5e (patch) | |
tree | a5db1d742334a5d80bbc0d0dbdeabd94e63c541f /telepathy-glib | |
parent | aa643f1836a732d0b849d465b7777ac3265ef9a4 (diff) | |
download | telepathy-glib-bf0b1ee111621247fdd83025d02cf42ab67aba5e.tar.gz |
add tp_account_channel_request_set_initial_invitee_ids()
Diffstat (limited to 'telepathy-glib')
-rw-r--r-- | telepathy-glib/account-channel-request.c | 27 | ||||
-rw-r--r-- | telepathy-glib/account-channel-request.h | 5 |
2 files changed, 32 insertions, 0 deletions
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 |