Files

34 lines
767 B
C

#ifndef KOLIBRIOS_CONSOLE_SHIM_H
#define KOLIBRIOS_CONSOLE_SHIM_H
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
#if defined(__i386__) || defined(_M_IX86)
#define KOS_STDCALL __attribute__ ((stdcall))
#else
#define KOS_STDCALL
#endif
typedef uint32_t dword;
typedef uint16_t word;
void KOS_STDCALL con_init (dword wnd_width, dword wnd_height, dword scr_width,
dword scr_height, const char *title);
void KOS_STDCALL con_exit (bool bCloseWindow);
void KOS_STDCALL con_set_title (const char *title);
void KOS_STDCALL con_write_asciiz (const char *string);
void KOS_STDCALL con_write_string (const char *string, dword length);
int con_printf (const char *format, ...);
#ifdef __cplusplus
}
#endif
#endif