diff --git a/audio/audio_driver.c b/audio/audio_driver.c index 8c75b25d9c..232570976d 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -225,7 +225,7 @@ const char *audio_driver_find_ident(int idx) **/ const char *config_get_audio_driver_options(void) { - return string_list_special_new(STRING_LIST_AUDIO_DRIVERS); + return string_list_special_new(STRING_LIST_AUDIO_DRIVERS, NULL); } void find_audio_driver(void) diff --git a/audio/audio_resampler_driver.c b/audio/audio_resampler_driver.c index 97241acfda..6a55bbde66 100644 --- a/audio/audio_resampler_driver.c +++ b/audio/audio_resampler_driver.c @@ -99,7 +99,7 @@ const char *audio_resampler_driver_find_ident(int idx) **/ const char* config_get_audio_resampler_driver_options(void) { - return string_list_special_new(STRING_LIST_AUDIO_RESAMPLER_DRIVERS); + return string_list_special_new(STRING_LIST_AUDIO_RESAMPLER_DRIVERS, NULL); } #endif diff --git a/camera/camera_driver.c b/camera/camera_driver.c index c7217fce1a..494860f516 100644 --- a/camera/camera_driver.c +++ b/camera/camera_driver.c @@ -80,7 +80,7 @@ const char *camera_driver_find_ident(int idx) **/ const char* config_get_camera_driver_options(void) { - return string_list_special_new(STRING_LIST_CAMERA_DRIVERS); + return string_list_special_new(STRING_LIST_CAMERA_DRIVERS, NULL); } void find_camera_driver(void) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 7b4f23299c..f94852fc88 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -151,7 +151,7 @@ const char *video_driver_find_ident(int idx) **/ const char* config_get_video_driver_options(void) { - return string_list_special_new(STRING_LIST_VIDEO_DRIVERS); + return string_list_special_new(STRING_LIST_VIDEO_DRIVERS, NULL); } void find_video_driver(void) diff --git a/input/input_driver.c b/input/input_driver.c index 3e7dfca311..475354e4c0 100644 --- a/input/input_driver.c +++ b/input/input_driver.c @@ -108,7 +108,7 @@ const char *input_driver_find_ident(int idx) **/ const char* config_get_input_driver_options(void) { - return string_list_special_new(STRING_LIST_INPUT_DRIVERS); + return string_list_special_new(STRING_LIST_INPUT_DRIVERS, NULL); } void find_input_driver(void) diff --git a/input/input_hid_driver.c b/input/input_hid_driver.c index 98ab1f0005..1722703fe8 100644 --- a/input/input_hid_driver.c +++ b/input/input_hid_driver.c @@ -81,7 +81,7 @@ const char *hid_driver_find_ident(int idx) **/ const char* config_get_hid_driver_options(void) { - return string_list_special_new(STRING_LIST_INPUT_HID_DRIVERS); + return string_list_special_new(STRING_LIST_INPUT_HID_DRIVERS, NULL); } #endif diff --git a/input/input_joypad_driver.c b/input/input_joypad_driver.c index 816e5e4941..33300118ef 100644 --- a/input/input_joypad_driver.c +++ b/input/input_joypad_driver.c @@ -109,7 +109,7 @@ const char *joypad_driver_find_ident(int idx) **/ const char* config_get_joypad_driver_options(void) { - return string_list_special_new(STRING_LIST_INPUT_JOYPAD_DRIVERS); + return string_list_special_new(STRING_LIST_INPUT_JOYPAD_DRIVERS, NULL); } #endif diff --git a/location/location_driver.c b/location/location_driver.c index a16ae6deab..d8886168a4 100644 --- a/location/location_driver.c +++ b/location/location_driver.c @@ -73,7 +73,7 @@ const char *location_driver_find_ident(int idx) **/ const char* config_get_location_driver_options(void) { - return string_list_special_new(STRING_LIST_LOCATION_DRIVERS); + return string_list_special_new(STRING_LIST_LOCATION_DRIVERS, NULL); } void find_location_driver(void) diff --git a/menu/menu_driver.c b/menu/menu_driver.c index b934cc818f..b7ffc8b3c6 100644 --- a/menu/menu_driver.c +++ b/menu/menu_driver.c @@ -87,7 +87,7 @@ const char *menu_driver_find_ident(int idx) **/ const char *config_get_menu_driver_options(void) { - return string_list_special_new(STRING_LIST_MENU_DRIVERS); + return string_list_special_new(STRING_LIST_MENU_DRIVERS, NULL); } void find_menu_driver(void) diff --git a/record/record_driver.c b/record/record_driver.c index 2b5ff1b078..6e628e6b51 100644 --- a/record/record_driver.c +++ b/record/record_driver.c @@ -76,7 +76,7 @@ const void *record_driver_find_handle(int idx) **/ const char* config_get_record_driver_options(void) { - return string_list_special_new(STRING_LIST_RECORD_DRIVERS); + return string_list_special_new(STRING_LIST_RECORD_DRIVERS, NULL); } void find_record_driver(void) diff --git a/string_list_special.c b/string_list_special.c index 0bce70e4e4..28e3af523c 100644 --- a/string_list_special.c +++ b/string_list_special.c @@ -39,7 +39,7 @@ #include "audio/audio_resampler_driver.h" #include "record/record_driver.h" -const char *string_list_special_new(enum string_list_type type) +const char *string_list_special_new(enum string_list_type type, void *data) { union string_list_elem_attr attr; unsigned i; @@ -50,6 +50,8 @@ const char *string_list_special_new(enum string_list_type type) attr.i = 0; + (void)data; + if (!s) return NULL; diff --git a/string_list_special.h b/string_list_special.h index c293397d9a..af0db90fab 100644 --- a/string_list_special.h +++ b/string_list_special.h @@ -33,6 +33,6 @@ enum string_list_type STRING_LIST_CORES_NAMES }; -const char *string_list_special_new(enum string_list_type type); +const char *string_list_special_new(enum string_list_type type, void *data); #endif