diff --git a/core_info.c b/core_info.c index e3e2ff2a09..37f89996be 100644 --- a/core_info.c +++ b/core_info.c @@ -429,7 +429,11 @@ error: return false; } -bool core_info_list_get_info(core_info_list_t *core_info_list, +/* Shallow-copies internal state. + * + * Data in *info is invalidated when the + * core_info_list is freed. */ +static bool core_info_list_get_info(core_info_list_t *core_info_list, core_info_t *out_info, const char *path) { size_t i; diff --git a/core_info.h b/core_info.h index 7052855fbf..e6abaa3b0b 100644 --- a/core_info.h +++ b/core_info.h @@ -100,11 +100,6 @@ typedef struct core_info_ctx_find void core_info_list_get_supported_cores(core_info_list_t *list, const char *path, const core_info_t **infos, size_t *num_infos); -/* Shallow-copies internal state. Data in *info is invalidated when the - * core_info_list is freed. */ -bool core_info_list_get_info(core_info_list_t *list, - core_info_t *info, const char *path); - bool core_info_list_get_display_name(core_info_list_t *list, const char *path, char *s, size_t len);