2021-06-07 00:17:03 +02:00
|
|
|
/*
|
2023-01-06 15:36:05 -05: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.
|
2021-06-07 00:17:03 +02:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* This file is part of the 86Box distribution.
|
2021-06-07 00:17:03 +02:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* Main include file for the application.
|
2021-06-07 00:17:03 +02:00
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
|
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
2021-06-07 00:17:03 +02:00
|
|
|
*
|
2023-01-06 15:36:05 -05:00
|
|
|
* Copyright 2021 Miran Grca.
|
|
|
|
|
* Copyright 2021 Fred N. van Kempen.
|
2021-06-07 00:17:03 +02:00
|
|
|
*/
|
2022-02-18 19:42:21 -05:00
|
|
|
|
2021-06-07 00:17:03 +02:00
|
|
|
#ifndef EMU_LOG_H
|
2022-09-18 17:15:38 -04:00
|
|
|
#define EMU_LOG_H
|
2021-06-07 00:17:03 +02:00
|
|
|
|
|
|
|
|
#ifndef RELEASE_BUILD
|
|
|
|
|
|
2022-09-18 17:15:38 -04:00
|
|
|
# ifdef __cplusplus
|
2021-06-07 00:17:03 +02:00
|
|
|
extern "C" {
|
2022-09-18 17:15:38 -04:00
|
|
|
# endif
|
2021-06-07 00:17:03 +02:00
|
|
|
|
|
|
|
|
/* Function prototypes. */
|
2022-09-18 17:15:38 -04:00
|
|
|
extern void log_set_suppr_seen(void *priv, int suppr_seen);
|
|
|
|
|
extern void log_set_dev_name(void *priv, char *dev_name);
|
|
|
|
|
# ifdef HAVE_STDARG_H
|
|
|
|
|
extern void log_out(void *priv, const char *fmt, va_list);
|
|
|
|
|
extern void log_fatal(void *priv, const char *fmt, ...);
|
|
|
|
|
# endif
|
|
|
|
|
extern void *log_open(char *dev_name);
|
|
|
|
|
extern void log_close(void *priv);
|
2021-06-07 00:17:03 +02:00
|
|
|
|
2022-09-18 17:15:38 -04:00
|
|
|
# ifdef __cplusplus
|
2021-06-07 00:17:03 +02:00
|
|
|
}
|
2022-09-18 17:15:38 -04:00
|
|
|
# endif
|
2021-06-07 00:17:03 +02:00
|
|
|
|
|
|
|
|
#else
|
2022-09-18 17:15:38 -04:00
|
|
|
# define log_fatal(priv, fmt, ...) fatal(fmt, ...)
|
|
|
|
|
#endif /*RELEASE_BUILD*/
|
2021-06-07 00:17:03 +02:00
|
|
|
|
2022-09-18 17:15:38 -04:00
|
|
|
#endif /*EMU_LOG_H*/
|