linphonecore: add linphone_configuring_state_to_string API

This commit is contained in:
Gautier Pelloux-Prayer 2015-07-15 14:21:03 +02:00
parent e48f88ff27
commit 661fa76163
2 changed files with 22 additions and 0 deletions

View file

@ -1496,6 +1496,7 @@ void linphone_configuring_terminated(LinphoneCore *lc, LinphoneConfiguringState
linphone_core_start(lc);
}
static int linphone_core_serialization_ref = 0;
static void linphone_core_activate_log_serialization_if_needed(void) {
@ -6460,6 +6461,21 @@ LinphonePayloadType* linphone_core_find_payload_type(LinphoneCore* lc, const cha
return NULL;
}
const char* linphone_configuring_state_to_string(LinphoneConfiguringState cs){
switch(cs){
case LinphoneConfiguringSuccessful:
return "LinphoneConfiguringSuccessful";
break;
case LinphoneConfiguringFailed:
return "LinphoneConfiguringFailed";
break;
case LinphoneConfiguringSkipped:
return "LinphoneConfiguringSkipped";
break;
}
return NULL;
}
const char *linphone_global_state_to_string(LinphoneGlobalState gs){
switch(gs){
case LinphoneGlobalOff:

View file

@ -2141,6 +2141,12 @@ typedef enum _LinphoneConfiguringState {
LinphoneConfiguringSkipped
} LinphoneConfiguringState;
/**
* Converts a _LinphoneConfiguringState enum to a string.
* @ingroup misc
**/
LINPHONE_PUBLIC const char *linphone_configuring_state_to_string(LinphoneConfiguringState cs);
/**
* Callback prototype for configuring status changes notification
* @param lc the LinphoneCore