diff --git a/menu/menu_entry.c b/menu/menu_entry.c index 7a54922b5b..450dfce87a 100644 --- a/menu/menu_entry.c +++ b/menu/menu_entry.c @@ -14,6 +14,7 @@ */ #include "menu.h" +#include "menu_entry.h" #include "menu_navigation.h" #include "menu_setting.h" #include "menu_input.h" diff --git a/menu/menu_entry.h b/menu/menu_entry.h new file mode 100644 index 0000000000..5e4d1b151a --- /dev/null +++ b/menu/menu_entry.h @@ -0,0 +1,79 @@ +/* RetroArch - A frontend for libretro. + * Copyright (C) 2011-2015 - Daniel De Matteis + * + * RetroArch is free software: you can redistribute it and/or modify it under the terms + * of the GNU General Public License as published by the Free Software Found- + * ation, either version 3 of the License, or (at your option) any later version. + * + * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; + * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with RetroArch. + * If not, see . + */ + +#ifndef MENU_ENTRY_H__ +#define MENU_ENTRY_H__ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +void get_core_title(char *title_msg, size_t title_msg_len); + +rarch_setting_t *get_menu_entry_setting(uint32_t i); + +enum menu_entry_type get_menu_entry_type(uint32_t i); + +const char *get_menu_entry_label(uint32_t i); + +uint32_t menu_entry_bool_value_get(uint32_t i); + +void menu_entry_bool_value_set(uint32_t i, uint32_t new_val); + +struct string_list *menu_entry_enum_values(uint32_t i); + +void menu_entry_enum_value_set_with_string(uint32_t i, const char *s); + +int32_t menu_entry_bind_index(uint32_t i); + +void menu_entry_bind_key_set(uint32_t i, int32_t value); + +void menu_entry_bind_joykey_set(uint32_t i, int32_t value); + +void menu_entry_bind_joyaxis_set(uint32_t i, int32_t value); + +void menu_entry_pathdir_selected(uint32_t i); + +uint32_t menu_entry_pathdir_allow_empty(uint32_t i); + +uint32_t menu_entry_pathdir_for_directory(uint32_t i); + +const char *menu_entry_pathdir_value_get(uint32_t i); + +void menu_entry_pathdir_value_set(uint32_t i, const char *s); + +const char *menu_entry_pathdir_extensions(uint32_t i); + +void menu_entry_reset(uint32_t i); + +void menu_entry_value_get(uint32_t i, char *s, size_t len); + +void menu_entry_value_set(uint32_t i, const char *s); + +uint32_t menu_entry_num_has_range(uint32_t i); + +float menu_entry_num_min(uint32_t i); + +float menu_entry_num_max(uint32_t i); + +uint32_t menu_select_entry(uint32_t i); + +#ifdef __cplusplus +} +#endif + +#endif