Files
86Box/src/include/86box/log.h

48 lines
1.2 KiB
C
Raw Normal View History

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