diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index ebd2253a0..dbe706d4c 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -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) { diff --git a/include/linphone/core.h b/include/linphone/core.h index fabcdab6c..9add3df87 100644 --- a/include/linphone/core.h +++ b/include/linphone/core.h @@ -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.