RetroArch
core_option_manager.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2010-2014 - Hans-Kristian Arntzen
3  * Copyright (C) 2011-2017 - Daniel De Matteis
4  *
5  * RetroArch is free software: you can redistribute it and/or modify it under the terms
6  * of the GNU General Public License as published by the Free Software Found-
7  * ation, either version 3 of the License, or (at your option) any later version.
8  *
9  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  * PURPOSE. See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License along with RetroArch.
14  * If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef CORE_OPTION_MANAGER_H__
18 #define CORE_OPTION_MANAGER_H__
19 
20 #include <stddef.h>
21 
22 #include <boolean.h>
23 #include <retro_common_api.h>
24 #include <lists/string_list.h>
25 
27 
29 {
30  char *desc;
31  char *key;
32  struct string_list *vals;
33  size_t index;
34 };
35 
37 {
40 
41  struct core_option *opts;
42  size_t size;
43  bool updated;
44 };
45 
47 
58  const void *data);
59 
70 
81 
93  core_option_manager_t *opt, const char* path);
94 
102 
104 
114 
125  size_t idx);
126 
137  size_t idx);
138 
140  size_t idx, size_t val_idx);
141 
151 
162 
171 
173 
174 #endif
void core_option_manager_get(core_option_manager_t *opt, void *data)
Definition: core_option_manager.c:127
const char * core_option_manager_get_val(core_option_manager_t *opt, size_t idx)
Definition: core_option_manager.c:325
char * desc
Definition: core_option_manager.h:30
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
size_t index
Definition: core_option_manager.h:33
GLsizei const GLchar ** path
Definition: glext.h:7901
Definition: core_option_manager.h:36
void core_option_manager_next(core_option_manager_t *opt, size_t idx)
Definition: core_option_manager.c:356
void core_option_manager_free(core_option_manager_t *opt)
Definition: core_option_manager.c:99
Definition: ibxm.h:9
#define PATH_MAX_LENGTH
Definition: retro_miscellaneous.h:83
const char * core_option_manager_get_desc(core_option_manager_t *opt, size_t idx)
Definition: core_option_manager.c:309
bool updated
Definition: core_option_manager.h:43
void core_option_manager_prev(core_option_manager_t *opt, size_t idx)
Definition: core_option_manager.c:378
Definition: core_option_manager.h:28
size_t core_option_manager_size(core_option_manager_t *opt)
Definition: core_option_manager.c:293
core_option_manager_t * core_option_manager_new(const char *conf_path, const void *data)
Definition: core_option_manager.c:169
bool core_option_manager_updated(core_option_manager_t *opt)
Definition: core_option_manager.c:226
void core_option_manager_set_default(core_option_manager_t *opt, size_t idx)
Definition: core_option_manager.c:399
set set set set set set set macro pixldst1 abits if abits op else op endif endm macro pixldst2 abits if abits op else op endif endm macro pixldst4 abits if abits op else op endif endm macro pixldst0 idx
Definition: pixman-arm-neon-asm.h:96
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
std::shared_ptr< Ope > opt(const std::shared_ptr< Ope > &ope)
Definition: peglib.h:1579
struct string_list * vals
Definition: core_option_manager.h:32
char * key
Definition: core_option_manager.h:31
Definition: config_file.h:55
bool core_option_manager_flush_game_specific(core_option_manager_t *opt, const char *path)
Definition: core_option_manager.c:269
struct core_option * opts
Definition: core_option_manager.h:41
void core_option_manager_set_val(core_option_manager_t *opt, size_t idx, size_t val_idx)
Definition: core_option_manager.c:334
char conf_path[PATH_MAX_LENGTH]
Definition: core_option_manager.h:39
size_t size
Definition: core_option_manager.h:42
bool core_option_manager_flush(core_option_manager_t *opt)
Definition: core_option_manager.c:242
Definition: string_list.h:47
config_file_t * conf
Definition: core_option_manager.h:38