Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
configuration.h
Go to the documentation of this file.
1 /* Xep128: Minimalistic Enterprise-128 emulator with focus on "exotic" hardware
2  Copyright (C)2015,2016 LGB (Gábor Lénárt) <lgblgblgb@gmail.com>
3  http://xep128.lgb.hu/
4 
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
18 
19 #ifndef __XEP128_CONFIGURATION_H_INCLUDED
20 #define __XEP128_CONFIGURATION_H_INCLUDED
21 
22 #include <SDL_version.h>
23 
25 extern char current_directory[PATH_MAX + 1];
26 extern char sdimg_path[PATH_MAX + 1];
27 extern SDL_version sdlver_compiled, sdlver_linked;
28 
29 extern int config_init ( int argc, char **argv );
30 extern void *config_getopt ( const char *name, const int subopt, void *value );
31 extern void config_getopt_pointed ( void *st_in, void *value );
32 extern FILE *open_emu_file ( const char *name, const char *mode, char *pathbuffer );
33 extern void forget_emu_file ( const char *path );
34 
35 static inline int config_getopt_int ( const char *name ) {
36  int n;
37  config_getopt(name, -1, &n);
38  return n;
39 }
40 static inline const char *config_getopt_str ( const char *name ) {
41  char *s;
42  config_getopt(name, -1, &s);
43  return s;
44 }
45 
46 #endif
forget_emu_file
void forget_emu_file(const char *path)
Definition: configuration.c:98
app_base_path
char * app_base_path
Definition: configuration.h:24
current_directory
char current_directory[PATH_MAX+1]
Definition: configuration.c:85
open_emu_file
FILE * open_emu_file(const char *name, const char *mode, char *pathbuffer)
Definition: configuration.c:109
sdlver_compiled
SDL_version sdlver_compiled
Definition: configuration.c:86
config_getopt
void * config_getopt(const char *name, const int subopt, void *value)
Definition: configuration.c:254
configOption_st::subopt
const int subopt
Definition: configuration.c:44
app_pref_path
char * app_pref_path
Definition: configuration.c:84
config_init
int config_init(int argc, char **argv)
Definition: configuration.c:565
sdlver_linked
SDL_version sdlver_linked
Definition: configuration.h:27
value
int value
Definition: dma65.c:90
name
const char * name
Definition: joystick.c:46
config_getopt_pointed
void config_getopt_pointed(void *st_in, void *value)
Definition: configuration.c:275
sdimg_path
char sdimg_path[PATH_MAX+1]