Xemu [doxygen]  hyppo 0a42be3a057156924bc1b626a687bd6e27349c45 @ Sat 19 Mar 02:15:11 CET 2022
Data Structures | Macros | Enumerations | Functions | Variables
configuration.c File Reference
#include "xep128.h"
#include "configuration.h"
#include "console.h"
#include "keyboard_mapping.h"
#include <SDL.h>
#include <unistd.h>
Include dependency graph for configuration.c:

Go to the source code of this file.

Data Structures

struct  configOption_st
 
struct  configSetting_st
 

Macros

#define DEBUGFILE_OPT   "debug"
 

Enumerations

enum  configItemEnum_t { CONFITEM_INT, CONFITEM_STR, CONFITEM_BOOL, CONFITEM_FLOAT }
 

Functions

void forget_emu_file (const char *path)
 
FILE * open_emu_file (const char *name, const char *mode, char *pathbuffer)
 
int config_set (const char *name, int subopt, const char *value)
 
void * config_getopt (const char *name, const int subopt, void *value)
 
void config_getopt_pointed (void *st_in, void *value)
 
int is_help_request_option (const char *opt)
 
int config_init (int argc, char **argv)
 

Variables

char * app_pref_path
 
char * app_base_path
 
char current_directory [PATH_MAX+1]
 
SDL_version sdlver_compiled
 
SDL_version sdlver_linked
 
FILE * debug_fp = NULL
 

Macro Definition Documentation

◆ DEBUGFILE_OPT

#define DEBUGFILE_OPT   "debug"

Definition at line 55 of file configuration.c.

Enumeration Type Documentation

◆ configItemEnum_t

Enumerator
CONFITEM_INT 
CONFITEM_STR 
CONFITEM_BOOL 
CONFITEM_FLOAT 

Definition at line 33 of file configuration.c.

Function Documentation

◆ config_getopt()

void* config_getopt ( const char *  name,
const int  subopt,
void *  value 
)

Definition at line 254 of file configuration.c.

◆ config_getopt_pointed()

void config_getopt_pointed ( void *  st_in,
void *  value 
)

Definition at line 275 of file configuration.c.

◆ config_init()

int config_init ( int  argc,
char **  argv 
)

Definition at line 565 of file configuration.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ config_set()

int config_set ( const char *  name,
int  subopt,
const char *  value 
)

Definition at line 198 of file configuration.c.

◆ forget_emu_file()

void forget_emu_file ( const char *  path)

Definition at line 98 of file configuration.c.

◆ is_help_request_option()

int is_help_request_option ( const char *  opt)

Definition at line 481 of file configuration.c.

◆ open_emu_file()

FILE* open_emu_file ( const char *  name,
const char *  mode,
char *  pathbuffer 
)

Definition at line 109 of file configuration.c.

Here is the caller graph for this function:

Variable Documentation

◆ app_base_path

char * app_base_path

Definition at line 84 of file configuration.c.

◆ app_pref_path

char* app_pref_path

Definition at line 84 of file configuration.c.

◆ current_directory

char current_directory[PATH_MAX+1]

Definition at line 85 of file configuration.c.

◆ debug_fp

FILE* debug_fp = NULL

Definition at line 87 of file configuration.c.

◆ sdlver_compiled

SDL_version sdlver_compiled

Definition at line 86 of file configuration.c.

◆ sdlver_linked

SDL_version sdlver_linked

Definition at line 86 of file configuration.c.