Subversion Repositories Kolibri OS

Rev

Rev 9558 | Rev 9766 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9558 Rev 9620
Line 9... Line 9...
9
#ifndef _CONIO_H_
9
#ifndef _CONIO_H_
10
#define _CONIO_H_
10
#define _CONIO_H_
Line 11... Line 11...
11
 
11
 
Line 12... Line -...
12
#include 
-
 
13
 
-
 
14
#define cdecl   __attribute__ ((cdecl))
-
 
15
#define stdcall __attribute__ ((stdcall))
12
#include 
16
 
13
 
17
/*
14
/*
Line 18... Line 15...
18
console.obj exports the following functions
15
console.obj exports the following functions
Line 36... Line 33...
36
 
33
 
Line 37... Line 34...
37
#define CON_IGNORE_SPECIALS 0x100
34
#define CON_IGNORE_SPECIALS 0x100
38
 
35
 
39
extern int _FUNC(con_init)(void);
36
extern int _FUNC(con_init)(void);
40
extern int _FUNC(con_init_opt)(dword wnd_width, dword wnd_height, dword scr_width, dword scr_height, const char* title);
37
extern int _FUNC(con_init_opt)(dword wnd_width, dword wnd_height, dword scr_width, dword scr_height, const char* title);
41
extern void stdcall _FUNC((*con_exit))(int bCloseWindow);
38
extern void  __stdcall _FUNC((*con_exit))(int bCloseWindow);
42
extern void stdcall _FUNC((*con_set_title))(const char* title);
39
extern void  __stdcall _FUNC((*con_set_title))(const char* title);
43
extern void stdcall _FUNC((*con_write_asciiz))(const char* str);
40
extern void  __stdcall _FUNC((*con_write_asciiz))(const char* str);
44
extern void stdcall _FUNC((*con_write_string))(const char* str, dword length);
41
extern void  __stdcall _FUNC((*con_write_string))(const char* str, dword length);
45
extern int cdecl    _FUNC((*con_printf))(const char* format, ...);
42
extern int __cdecl _FUNC((*con_printf))(const char* format, ...);
46
extern dword stdcall _FUNC((*con_get_flags))(void);
43
extern dword  __stdcall _FUNC((*con_get_flags))(void);
47
extern dword stdcall _FUNC((*con_set_flags))(dword new_flags);
44
extern dword  __stdcall _FUNC((*con_set_flags))(dword new_flags);
48
extern int stdcall _FUNC((*con_get_font_height))(void);
45
extern int  __stdcall _FUNC((*con_get_font_height))(void);
49
extern int stdcall _FUNC((*con_get_cursor_height))(void);
46
extern int  __stdcall _FUNC((*con_get_cursor_height))(void);
50
extern int stdcall _FUNC((*con_set_cursor_height))(int new_height);
47
extern int  __stdcall _FUNC((*con_set_cursor_height))(int new_height);
51
extern int stdcall _FUNC((*con_getch))(void);
48
extern int  __stdcall _FUNC((*con_getch))(void);
52
extern word stdcall _FUNC((*con_getch2))(void);
49
extern word  __stdcall _FUNC((*con_getch2))(void);
53
extern int stdcall  _FUNC((*con_kbhit))(void);
50
extern int  __stdcall  _FUNC((*con_kbhit))(void);
54
extern char* stdcall _FUNC((*con_gets))(char* str, int n);
51
extern char*  __stdcall _FUNC((*con_gets))(char* str, int n);
55
typedef int (stdcall _FUNC(* con_gets2_callback))(int keycode, char** pstr, int* pn, int* ppos);
52
typedef int __stdcall _FUNC(* con_gets2_callback)(int keycode, char** pstr, int* pn, int* ppos);
56
extern char* stdcall _FUNC((*con_gets2))(con_gets2_callback callback, char* str, int n);
53
extern char*  __stdcall _FUNC((*con_gets2))(con_gets2_callback callback, char* str, int n);
57
extern void stdcall _FUNC((*con_cls))();
54
extern void  __stdcall _FUNC((*con_cls))();
58
extern void stdcall _FUNC((*con_get_cursor_pos))(int* px, int* py);
55
extern void  __stdcall _FUNC((*con_get_cursor_pos))(int* px, int* py);
Line 59... Line 56...
59
extern void stdcall _FUNC((*con_set_cursor_pos))(int x, int y);
56
extern void  __stdcall _FUNC((*con_set_cursor_pos))(int x, int y);