Skip to content
Snippets Groups Projects
Commit 154ceab2 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

conference : remove one prototype

parent 640c9c64
Branches
Tags
No related merge requests found
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
#include "calltab.h" #include "calltab.h"
#include "calllist.h" #include "calllist.h"
static void conference_add_participant_number(const gchar *, conference_obj_t *);
conference_obj_t *create_new_conference (conference_state_t state, const gchar* const confID) conference_obj_t *create_new_conference (conference_state_t state, const gchar* const confID)
{ {
conference_obj_t *new_conf; conference_obj_t *new_conf;
...@@ -139,6 +137,19 @@ void free_conference_obj_t (conference_obj_t *c) ...@@ -139,6 +137,19 @@ void free_conference_obj_t (conference_obj_t *c)
g_free (c); g_free (c);
} }
static
void conference_add_participant_number(const gchar *call_id, conference_obj_t *conf)
{
callable_obj_t *call = calllist_get_call(current_calls, call_id);
if (!call) {
ERROR("Conference: Error: Could not find %s", call_id);
return;
}
gchar *number_account = g_strconcat(call->_peer_number, ",", call->_accountID, NULL);
conf->participant_number = g_slist_append(conf->participant_number, number_account);
}
void conference_add_participant (const gchar* call_id, conference_obj_t* conf) void conference_add_participant (const gchar* call_id, conference_obj_t* conf)
{ {
...@@ -151,22 +162,6 @@ void conference_add_participant (const gchar* call_id, conference_obj_t* conf) ...@@ -151,22 +162,6 @@ void conference_add_participant (const gchar* call_id, conference_obj_t* conf)
conference_add_participant_number(call_id, conf); conference_add_participant_number(call_id, conf);
} }
static
void conference_add_participant_number(const gchar *call_id, conference_obj_t *conf)
{
gchar *number_account;
callable_obj_t *call = calllist_get_call(current_calls, call_id);
if (!call) {
ERROR("Conference: Error: Could not find");
return;
}
number_account = g_strconcat(call->_peer_number, ",", call->_accountID, NULL);
conf->participant_number = g_slist_append(conf->participant_number, (gpointer) number_account);
}
void conference_remove_participant (const gchar* call_id, conference_obj_t* conf) void conference_remove_participant (const gchar* call_id, conference_obj_t* conf)
{ {
// store the new participant list after removing participant id // store the new participant list after removing participant id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment