Some const fixes.

This commit is contained in:
Ghislain MARY 2017-10-13 10:04:39 +02:00
parent 8f1ed031da
commit 66a92bb88a
2 changed files with 4 additions and 4 deletions

View file

@ -4142,7 +4142,7 @@ const char** linphone_core_get_video_devices(const LinphoneCore *lc){
return lc->video_conf.cams;
}
const bctbx_list_t * linphone_core_get_sound_devices_list(LinphoneCore *lc){
bctbx_list_t * linphone_core_get_sound_devices_list(const LinphoneCore *lc){
bctbx_list_t *cards_list = NULL;
const char** cards = lc->sound_conf.cards;
for (const char* c = *cards; c; c=*++cards) {
@ -4151,7 +4151,7 @@ const bctbx_list_t * linphone_core_get_sound_devices_list(LinphoneCore *lc){
return cards_list;
}
const bctbx_list_t * linphone_core_get_video_devices_list(const LinphoneCore *lc){
bctbx_list_t * linphone_core_get_video_devices_list(const LinphoneCore *lc){
bctbx_list_t *cards_list = NULL;
const char** cards = lc->video_conf.cams;
for (const char* c = *cards; c; c=*++cards) {

View file

@ -2697,7 +2697,7 @@ LINPHONE_PUBLIC const char** linphone_core_get_sound_devices(LinphoneCore *lc);
* @return \bctbx_list{char *} An unmodifiable array of strings contanining the names of the available sound devices that is NULL terminated
* @ingroup media_parameters
**/
LINPHONE_PUBLIC const bctbx_list_t * linphone_core_get_sound_devices_list(LinphoneCore *lc);
LINPHONE_PUBLIC bctbx_list_t * linphone_core_get_sound_devices_list(const LinphoneCore *lc);
/**
* Use this function when you want to set the default sound devices
@ -3613,7 +3613,7 @@ LINPHONE_PUBLIC const char** linphone_core_get_video_devices(const LinphoneCore
* @return \bctbx_list{char *} An unmodifiable array of strings contanining the names of the available video capture devices that is NULL terminated
* @ingroup media_parameters
**/
LINPHONE_PUBLIC const bctbx_list_t * linphone_core_get_video_devices_list(LinphoneCore *lc);
LINPHONE_PUBLIC bctbx_list_t * linphone_core_get_video_devices_list(const LinphoneCore *lc);
/**
* Sets the active video device.