Move some documentation from the source code to the headers.

This commit is contained in:
Ghislain MARY 2016-12-20 12:05:42 +01:00
parent 203e5079a5
commit 66887a5200
6 changed files with 1394 additions and 1337 deletions

View file

@ -419,7 +419,7 @@ static bctbx_list_t * create_telephone_events(LinphoneCore *lc, const bctbx_list
static bctbx_list_t *create_special_payload_types(LinphoneCore *lc, const bctbx_list_t *codecs){
bctbx_list_t *ret=create_telephone_events(lc, codecs);
if (linphone_core_generic_confort_noise_enabled(lc)){
if (linphone_core_generic_comfort_noise_enabled(lc)){
PayloadType *cn=payload_type_clone(&payload_type_cn);
payload_type_set_number(cn, 13);
ret=bctbx_list_append(ret, cn);

File diff suppressed because it is too large Load diff

View file

@ -78,7 +78,7 @@ void AudioStreamStartCommand::exec(Daemon *app, const string& args) {
payload_type_append_send_fmtp(pt, fmtp);
}
rtp_profile_set_payload(prof, payload_type,pt);
if (linphone_core_generic_confort_noise_enabled(app->getCore())){
if (linphone_core_generic_comfort_noise_enabled(app->getCore())){
rtp_profile_set_payload(prof, 13, payload_type_clone(&payload_type_cn));
}
audio_stream_enable_adaptive_jittcomp(stream, linphone_core_audio_adaptive_jittcomp_enabled(app->getCore()));

View file

@ -28,7 +28,7 @@ public:
CNResponse::CNResponse(LinphoneCore *core) : Response() {
ostringstream ost;
bool cn_enabled = linphone_core_generic_confort_noise_enabled(core) == TRUE ? true : false;
bool cn_enabled = linphone_core_generic_comfort_noise_enabled(core) == TRUE ? true : false;
ost << "State: ";
if (cn_enabled) {
ost << "enabled\n";
@ -41,7 +41,7 @@ CNResponse::CNResponse(LinphoneCore *core) : Response() {
CNCommand::CNCommand() :
DaemonCommand("cn", "cn [enable|disable]",
"Enable or disable generic confort noice (CN payload type) with the 'enable' and 'disable' parameters, return the status of the use of confort noise without parameter.") {
"Enable or disable generic comfort noice (CN payload type) with the 'enable' and 'disable' parameters, return the status of the use of comfort noise without parameter.") {
addExample(new DaemonCommandExample("cn enable",
"Status: Ok\n\n"
"State: enabled"));
@ -63,9 +63,9 @@ void CNCommand::exec(Daemon *app, const string& args) {
}
if (status.compare("enable") == 0) {
linphone_core_enable_generic_confort_noise(app->getCore(), TRUE);
linphone_core_enable_generic_comfort_noise(app->getCore(), TRUE);
} else if (status.compare("disable") == 0) {
linphone_core_enable_generic_confort_noise(app->getCore(), FALSE);
linphone_core_enable_generic_comfort_noise(app->getCore(), FALSE);
} else {
app->sendResponse(Response("Incorrect parameter.", Response::Error));
return;

File diff suppressed because it is too large Load diff

View file

@ -3406,8 +3406,8 @@ static void call_with_generic_cn(void) {
linphone_core_set_play_file(marie->lc, audio_file_with_silence);
/*linphone_core_set_play_file(pauline->lc, NULL);*/
linphone_core_set_record_file(pauline->lc, recorded_file);
linphone_core_enable_generic_confort_noise(marie->lc, TRUE);
linphone_core_enable_generic_confort_noise(pauline->lc, TRUE);
linphone_core_enable_generic_comfort_noise(marie->lc, TRUE);
linphone_core_enable_generic_comfort_noise(pauline->lc, TRUE);
BC_ASSERT_TRUE(call(marie,pauline));
pauline_call=linphone_core_get_current_call(pauline->lc);
BC_ASSERT_PTR_NOT_NULL(pauline_call);