RetroArch
command.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-2016 - Daniel De Matteis
4  * Copyright (C) 2016 - Brad Parker
5  *
6  * RetroArch is free software: you can redistribute it and/or modify it under the terms
7  * of the GNU General Public License as published by the Free Software Found-
8  * ation, either version 3 of the License, or (at your option) any later version.
9  *
10  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
11  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  * PURPOSE. See the GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License along with RetroArch.
15  * If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef COMMAND_H__
19 #define COMMAND_H__
20 
21 #include <stdint.h>
22 
23 #include <boolean.h>
24 #include <retro_common_api.h>
25 
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29 
30 #include "playlist.h"
31 
33 
34 typedef struct command command_t;
35 
36 typedef struct command_handle
37 {
39  unsigned id;
41 
43 {
45  /* Resets RetroArch. */
49  /* Loads core. */
54  /* Swaps the current state with what's on the undo load buffer */
56  /* Rewrites a savestate on disk */
61  /* Takes screenshot. */
63  /* Quits RetroArch. */
65  /* Reinitialize all drivers. */
67  /* Reinitialize all drivers. */
69  /* Toggles cheevos hardcore mode. */
71  /* Deinitialize rewind. */
73  /* Initializes rewind. */
75  /* Toggles rewind. */
77  /* Deinitializes autosave. */
79  /* Initializes autosave. */
82  /* Stops audio. */
84  /* Starts audio. */
86  /* Mutes audio. */
88  /* Toggles FPS counter. */
90  /* Initializes overlay. */
92  /* Deinitializes overlay. */
94  /* Sets current scale factor for overlay. */
96  /* Sets current alpha modulation for overlay. */
98  /* Cycle to next overlay. */
100  /* Deinitializes overlay. */
102  /* Deinitializes graphics filter. */
104  /* Deinitializes GPU recoring. */
106  /* Initializes recording system. */
108  /* Deinitializes recording system. */
110  /* Deinitializes history playlist. */
112  /* Initializes history playlist. */
114  /* Deinitializes core information. */
116  /* Initializes core information. */
118  /* Deinitializes core. */
120  /* Initializes core. */
122  /* Set audio blocking state. */
124  /* Set audio nonblocking state. */
126  /* Apply video state changes. */
128  /* Set video blocking state. */
130  /* Set video nonblocking state. */
132  /* Sets current aspect ratio index. */
135  /* Restarts RetroArch. */
137  /* Shutdown the OS */
139  /* Reboot the OS */
141  /* Resume RetroArch when in menu. */
143  /* Add a playlist entry to favorites. */
145  /* Reset playlist entry associated core to DETECT */
147  /* Toggles pause. */
149  /* Pauses RetroArch. */
151  /* Unpauses retroArch. */
161  /* Toggles menu on/off. */
163  /* Applies shader changes. */
165  /* A new shader preset has been loaded */
167  /* Initializes shader directory. */
169  /* Deinitializes shader directory. */
171  /* Initializes controllers. */
173  /* Initializes cheats. */
175  /* Deinitializes cheats. */
177  /* Apply cheats. */
179  /* Deinitializes network system. */
181  /* Initializes network system. */
183  /* Initializes netplay system with a string or no host specified. */
185  /* Initializes netplay system with a direct host specified. */
187  /* Initializes netplay system with a direct host specified after loading content. */
189  /* Deinitializes netplay system. */
191  /* Switch between netplay gaming and watching. */
193  /* Initializes BSV movie. */
195  /* Deinitializes BSV movie. */
197  /* Initializes command interface. */
199  /* Deinitialize command interface. */
201  /* Initializes remote gamepad interface. */
203  /* Deinitializes remote gamepad interface. */
205  /* Initializes keyboard to gamepad mapper interface. */
207  /* Deinitializes keyboard to gamepad mapper interface. */
209  /* Reinitializes audio driver. */
211  /* Resizes windowed scale. Will reinitialize video driver. */
214  /* Toggles disk eject. */
216  /* Cycle to next disk. */
218  /* Cycle to previous disk. */
220  /* Appends disk image to disk image list. */
222  /* Stops rumbling. */
224  /* Toggles mouse grab. */
226  /* Toggles game focus. */
228  /* Toggles desktop menu. */
230  /* Toggles fullscreen mode. */
243 };
244 
245 bool command_set_shader(const char *arg);
246 
247 bool command_network_send(const char *cmd_);
248 
250  command_t *handle,
251  bool stdin_enable,
252  bool network_enable,
253  uint16_t port);
254 
255 command_t *command_new(void);
256 
257 bool command_poll(command_t *handle);
258 
259 bool command_get(command_handle_t *handle);
260 
261 bool command_set(command_handle_t *handle);
262 
263 bool command_free(command_t *handle);
264 
273 bool command_event(enum event_command action, void *data);
274 
277  const char *path,
278  const char *label,
279  const char *core_path,
280  const char *core_name);
281 
284  size_t idx,
285  const char *path,
286  const char *label,
287  const char *core_path,
288  const char *core_display_name,
289  const char *crc32,
290  const char *db_name);
291 
293 
294 #endif
Definition: command.h:115
Definition: command.h:144
Definition: command.h:51
bool command_network_new(command_t *handle, bool stdin_enable, bool network_enable, uint16_t port)
Definition: command.c:627
Definition: command.h:164
Definition: command.h:241
Definition: command.h:184
Definition: command.h:140
void command_playlist_update_write(playlist_t *playlist, size_t idx, const char *path, const char *label, const char *core_path, const char *core_display_name, const char *crc32, const char *db_name)
Definition: command.c:1799
Definition: command.h:174
Definition: command.h:123
Definition: command.h:213
Definition: command.h:210
Definition: command.h:234
Definition: command.h:47
Definition: command.h:208
Definition: command.h:227
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
Configuration options (set of defines)
Definition: command.h:242
Definition: command.h:192
void command_playlist_push_write(playlist_t *playlist, const char *path, const char *label, const char *core_path, const char *core_name)
Definition: command.c:1777
Definition: command.h:200
Definition: command.h:142
Definition: command.h:225
Definition: command.h:66
Definition: command.h:127
Definition: command.h:87
Definition: command.h:235
GLsizei const GLchar ** path
Definition: glext.h:7901
Definition: command.h:138
Definition: command.h:107
Definition: command.h:109
Definition: command.h:153
Definition: command.h:166
includes all by default used to find thumbnails Please choose a single playlist first Add Entry Add Folder Select Files< multiple > Please fill out all required fields RetroArch updated successfully Please restart the application for the changes to take effect Contributors Move Down Load Remove Add Pass No shader passes Reset All Passes Download thumbnail Start on Download All Thumbnails This Playlist Configured in port
Definition: msg_hash_us.h:7699
Definition: command.h:136
Definition: command.h:232
Definition: command.h:99
Definition: command.h:196
Definition: command.h:113
Definition: command.h:219
Definition: command.h:215
typedefRETRO_BEGIN_DECLS struct content_playlist playlist_t
Definition: playlist.h:27
Definition: command.h:81
Definition: command.h:101
Definition: command.h:93
Definition: command.h:131
Definition: command.h:150
bool command_poll(command_t *handle)
Definition: command.c:701
Definition: command.h:176
Definition: ibxm.h:9
Definition: command.h:59
Definition: command.h:231
Definition: command.h:233
Definition: command.h:83
Definition: command.h:229
Definition: command.h:170
GLuint GLsizei const GLchar * label
Definition: glext.h:8583
Definition: command.h:121
Definition: command.h:105
Definition: command.h:52
Definition: command.h:236
bool command_set(command_handle_t *handle)
Definition: command.c:724
Definition: command.h:103
Definition: command.h:68
Definition: command.h:62
Definition: command.h:134
Definition: command.h:204
Definition: command.h:64
Definition: command.h:125
Definition: command.h:60
Definition: command.h:202
Definition: command.h:178
Definition: command.h:76
struct command_handle command_handle_t
Definition: command.h:194
Definition: command.h:190
Definition: command.h:50
bool command_network_send(const char *cmd_)
Definition: command.c:552
Definition: command.h:72
bool command_free(command_t *handle)
Definition: command.c:733
Definition: command.h:237
Definition: command.h:146
Definition: command.h:221
Definition: command.h:160
Definition: command.h:238
Definition: command.h:119
Definition: command.h:223
Definition: command.h:89
Definition: command.h:159
Definition: command.h:97
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
Definition: command.h:172
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
Definition: command.h:85
typedefRETRO_BEGIN_DECLS struct command command_t
Definition: command.h:34
bool command_get(command_handle_t *handle)
Definition: command.c:716
Definition: command.h:152
Definition: command.h:80
event_command
Definition: command.h:42
Definition: command.h:57
Definition: command.h:48
Definition: command.h:91
Definition: command.h:162
Definition: command.h:117
Definition: command.h:155
Definition: command.h:74
Definition: command.h:129
Definition: command.h:186
bool command_event(enum event_command action, void *data)
Definition: command.c:1835
Definition: command.h:95
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len)
Definition: libz-crc32.c:70
Definition: command.h:148
Definition: command.h:133
includes all by default used to find thumbnails Please choose a single playlist first Add Entry Add Folder Select Files< multiple > Please fill out all required fields RetroArch updated successfully Please restart the application for the changes to take effect Contributors Move Down Load Remove Add Pass No shader passes Reset All Passes Download thumbnail Start on playlist
Definition: msg_hash_el.h:7543
command_t * handle
Definition: command.h:38
Definition: command.h:55
Definition: command.h:78
Definition: command.h:180
Definition: command.h:36
Definition: command.h:217
Definition: command.h:44
Definition: command.h:46
Definition: command.h:53
Definition: command.h:240
command_t * command_new(void)
Definition: command.c:618
bool command_set_shader(const char *arg)
Definition: command.c:249
unsigned short uint16_t
Definition: stdint.h:125
Definition: command.h:111
Definition: command.h:212
Definition: command.h:168
Definition: command.h:58
unsigned id
Definition: command.h:39
Definition: command.c:129
Definition: command.h:182
Definition: command.h:198
Definition: command.h:206