Subversion Repositories Kolibri OS

Rev

Rev 300 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
300 serge 1
 
2
extern "C"
3
{
4
#endif
5
6
 
7
 
8
#define FONT1          0x10000000
9
10
 
11
#define BT_NOFRAME     0x20000000
12
#define BT_HIDE        0x40000000
13
#define BT_DEL         0x80000000
14
15
 
16
#define EV_KEY         2
17
#define EV_BUTTON      3
18
19
 
20
#define REL_WINDOW     1
21
22
 
23
#define FILE_EOF       6
24
25
 
26
 
27
typedef unsigned short int WORD;
28
29
 
30
{  DWORD pci_cmd;
31
   DWORD irq;
32
   DWORD glob_cntrl;
33
   DWORD glob_sta;
34
   DWORD codec_io_base;
35
   DWORD ctrl_io_base;
36
   DWORD codec_mem_base;
37
   DWORD ctrl_mem_base;
38
   DWORD codec_id;
39
} CTRL_INFO;
40
41
 
42
{   DWORD       cmd;
43
    DWORD       offset;
44
    DWORD       r1;
45
    DWORD       count;
46
    DWORD       buff;
47
    char        r2;
48
    char       *name;
49
} FILEIO;
50
51
 
52
{   DWORD    attr;
53
    DWORD    flags;
54
    DWORD    cr_time;
55
    DWORD    cr_date;
56
    DWORD    acc_time;
57
    DWORD    acc_date;
58
    DWORD    mod_time;
59
    DWORD    mod_date;
60
    DWORD    size;
61
    DWORD    size_high;
62
} FILEINFO;
63
64
 
65
void* _stdcall UserAlloc(int size);
66
int   _stdcall UserFree(void* p);
324 serge 67
68
 
300 serge 69
70
 
71
DWORD _stdcall GetMousePos(DWORD rel_type);
72
int _stdcall   GetService(char *srv_name);
73
void _stdcall  GetDevInfo(DWORD hSrv,CTRL_INFO *pInfo);
74
int _stdcall   GetMasterVol(DWORD hSrv,int* vol);
75
int _stdcall   SetMasterVol(DWORD hSrv, int vol);
76
DWORD _stdcall CreateBuffer(DWORD hSrv, DWORD format);
77
int _stdcall   DestroyBuffer(DWORD hSrv, DWORD hBuff);
78
int _stdcall   SetBuffer(DWORD hSrv, DWORD hBuff,char* buff,
79
                               DWORD offs, int size);
80
int _stdcall   PlayBuffer(DWORD hSrv, DWORD hBuff);
81
int _stdcall   StopBuffer(DWORD hSrv, DWORD hBuff);
82
83
 
84
void debug_out_str(char* str);
85
86
 
324 serge 87
int _stdcall read_file (const char *name,char*buff,DWORD offset, DWORD count,DWORD *reads);
88
int _stdcall write_file(const char *name,char*buff,int offset,int count,int *writes);
89
300 serge 90
 
91
int _stdcall get_key(int *key);
324 serge 92
int _stdcall remap_key(int key);
93
94
 
300 serge 95
324 serge 96
 
300 serge 97
int wait_for_event(int time);
98
int wait_for_event_infinite();
99
void BeginDraw(void);
100
void EndDraw(void);
101
void _stdcall DrawWindow(int x,int y, int sx, int sy,int workcolor,int style,
102
                               int captioncolor,int windowtype,int bordercolor);
103
void _stdcall debug_out(int ch);
104
void _stdcall make_button(int x, int y, int xsize, int ysize, int id, int color);
105
void _stdcall draw_bar(int x, int y, int xsize, int ysize, int color);
106
void _stdcall write_text(int x,int y,int color,char* text,int len);
107
108
 
109
extern "C"
110
}
111
#endif
112