-
- return channel;
-}
-
-typedef struct {
- GArray *handles;
- TpHandle channel_handle;
- guint ref_count;
-} GroupAddData;
-
-static void
-tp_contact_list_group_add_data_unref (gpointer user_data)
-{
- GroupAddData *data = user_data;
-
- data->ref_count--;
- if (data->ref_count == 0) {
- g_array_free (data->handles, TRUE);
- g_slice_free (GroupAddData, data);
- }
-}
-
-static void
-tp_contact_list_group_add_ready_cb (TpChannel *channel,
- const GError *error,
- gpointer user_data)
-{
- GroupAddData *data = user_data;
-
- if (error) {
- tp_contact_list_group_add_data_unref (data);
- return;
- }
-
- tp_cli_channel_interface_group_call_add_members (channel, -1,
- data->handles, NULL, NULL, NULL, NULL, NULL);
- tp_contact_list_group_add_data_unref (data);