2017-07-26 00:34:43 +02:00
|
|
|
/*
|
|
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
|
|
|
|
*
|
|
|
|
|
* This file is part of the 86Box distribution.
|
|
|
|
|
*
|
|
|
|
|
* Configuration file handler header.
|
|
|
|
|
*
|
2017-09-23 21:12:26 -04:00
|
|
|
* Version: @(#)config.h 1.0.2 2017/09/19
|
2017-07-26 00:34:43 +02:00
|
|
|
*
|
|
|
|
|
* Authors: Sarah Walker,
|
|
|
|
|
* Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
|
|
|
|
* Overdoze,
|
|
|
|
|
* Copyright 2008-2017 Sarah Walker.
|
2017-08-24 01:14:39 -04:00
|
|
|
* Copyright 2016,2017 Miran Grca.
|
|
|
|
|
* Copyright 2017 Fred N. van Kempen.
|
2017-07-26 00:34:43 +02:00
|
|
|
*/
|
2017-08-24 01:14:39 -04:00
|
|
|
#ifndef EMU_CONFIG_H
|
|
|
|
|
# define EMU_CONFIG_H
|
|
|
|
|
|
|
|
|
|
|
2017-05-18 01:57:16 -04:00
|
|
|
extern wchar_t config_file_default[256];
|
|
|
|
|
|
2017-05-08 04:54:17 +02:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-09-23 21:12:26 -04:00
|
|
|
extern void config_load(wchar_t *fn);
|
|
|
|
|
extern void config_save(void);
|
|
|
|
|
extern void config_write(wchar_t *fn);
|
|
|
|
|
extern void config_dump(void);
|
|
|
|
|
|
|
|
|
|
extern void config_delete_var(char *head, char *name);
|
2017-05-18 01:57:16 -04:00
|
|
|
extern int config_get_int(char *head, char *name, int def);
|
2017-05-27 03:53:32 +02:00
|
|
|
extern int config_get_hex16(char *head, char *name, int def);
|
|
|
|
|
extern int config_get_hex20(char *head, char *name, int def);
|
|
|
|
|
extern int config_get_mac(char *head, char *name, int def);
|
2017-05-18 01:57:16 -04:00
|
|
|
extern char *config_get_string(char *head, char *name, char *def);
|
|
|
|
|
extern wchar_t *config_get_wstring(char *head, char *name, wchar_t *def);
|
|
|
|
|
extern void config_set_int(char *head, char *name, int val);
|
2017-05-27 03:53:32 +02:00
|
|
|
extern void config_set_hex16(char *head, char *name, int val);
|
|
|
|
|
extern void config_set_hex20(char *head, char *name, int val);
|
|
|
|
|
extern void config_set_mac(char *head, char *name, int val);
|
2017-05-18 01:57:16 -04:00
|
|
|
extern void config_set_string(char *head, char *name, char *val);
|
|
|
|
|
extern void config_set_wstring(char *head, char *name, wchar_t *val);
|
2016-06-26 00:34:39 +02:00
|
|
|
|
2017-05-18 01:57:16 -04:00
|
|
|
extern char *get_filename(char *s);
|
|
|
|
|
extern wchar_t *get_filename_w(wchar_t *s);
|
|
|
|
|
extern void append_filename(char *dest, char *s1, char *s2, int size);
|
|
|
|
|
extern void append_filename_w(wchar_t *dest, wchar_t *s1, wchar_t *s2, int size);
|
|
|
|
|
extern void put_backslash(char *s);
|
|
|
|
|
extern void put_backslash_w(wchar_t *s);
|
|
|
|
|
extern char *get_extension(char *s);
|
|
|
|
|
extern wchar_t *get_extension_w(wchar_t *s);
|
2017-05-08 04:54:17 +02:00
|
|
|
|
|
|
|
|
|
2017-05-18 01:57:16 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
2017-08-24 01:14:39 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif /*EMU_CONFIG_H*/
|