Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
6021 leency 1
//CODED by Veliant, Leency, Nable, Pavelyakov. GNU GPL licence.
2
 
5598 pavelyakov 3
#ifndef INCLUDE_KOLIBRI_H
5582 pavelyakov 4
#define INCLUDE_KOLIBRI_H
5576 pavelyakov 5
 
5676 pavelyakov 6
#pragma option OST
7
#pragma option ON
8
#pragma option cri-
9
#pragma option -CPA
10
#initallvar 0
9699 Coldy 11
 
12
#ifndef __COFF__
5676 pavelyakov 13
#jumptomain FALSE
14
 
3067 leency 15
#startaddress 0
5676 pavelyakov 16
 
3067 leency 17
#code32 TRUE
5676 pavelyakov 18
 
7982 leency 19
#ifndef ENTRY_POINT
20
	#define ENTRY_POINT #______INIT______
21
#endif
22
 
8949 leency 23
char   os_name[]    = "MENUET01"n;
3067 leency 24
dword  os_version   = 0x00000001;
7982 leency 25
dword  start_addr   = ENTRY_POINT;
5648 pavelyakov 26
dword  final_addr   = #______STOP______+32;
3363 leency 27
dword  alloc_mem    = MEMSIZE;
28
dword  x86esp_reg   = MEMSIZE;
3067 leency 29
dword  I_Param      = #param;
30
dword  I_Path       = #program_path;
31
char param[4096];
32
char program_path[4096];
9699 Coldy 33
#else
34
extern dword            __argv;
35
extern dword            __path;
3067 leency 36
 
9699 Coldy 37
dword  I_Param      =   #__argv;
38
dword  I_Path       =   #__path;
39
 
40
#define param           __argv
41
#define program_path    __path
42
#endif
43
 
6651 leency 44
#define bool      int
5883 pavelyakov 45
 
3363 leency 46
#define NULL      0
47
#define OLD      -1
48
#define true      1
49
#define false     0
50
 
6039 leency 51
//Process Events
4536 leency 52
#define evReDraw  1
53
#define evKey     2
54
#define evButton  3
5576 pavelyakov 55
#define evDesktop 5
3067 leency 56
#define evMouse   6
5576 pavelyakov 57
#define evIPC     7
4536 leency 58
#define evNetwork 8
5576 pavelyakov 59
#define evDebug   9
3067 leency 60
 
6978 leency 61
//Event mask bits for function 40
7031 leency 62
#define EVM_REDRAW                1b
63
#define EVM_KEY                  10b
64
#define EVM_BUTTON              100b
7569 leency 65
#define EVM_DESKTOPBG         10000b
7031 leency 66
#define EVM_MOUSE            100000b
67
#define EVM_IPC             1000000b
68
#define EVM_STACK          10000000b
69
#define EVM_DEBUG         100000000b
70
#define EVM_STACK2       1000000000b
6978 leency 71
#define EVM_MOUSE_FILTER  0x80000000
72
#define EVM_CURSOR_FILTER 0x40000000
73
 
3067 leency 74
//Button options
75
#define BT_DEL      0x80000000
76
#define BT_HIDE     0x40000000
77
#define BT_NOFRAME  0x20000000
78
 
7054 leency 79
#define CLOSE_BTN 1
80
 
3067 leency 81
//-------------------------------------------------------------------------
82
 
5674 pavelyakov 83
#include "../lib/system.h"
84
#include "../lib/mouse.h"
6285 leency 85
#include "../lib/keyboard.h"
5674 pavelyakov 86
 
6751 leency 87
inline fastcall dword calc(EAX) { return EAX; }
6742 leency 88
 
7913 leency 89
 
5477 leency 90
:struct raw_image {
91
	dword w, h, data;
92
};
93
 
3067 leency 94
//------------------------------------------------------------------------------
95
inline fastcall dword WaitEvent()
96
{
97
	$mov eax,10
98
	$int 0x40
99
}
100
 
101
inline fastcall dword CheckEvent()
102
{
103
	$mov eax,11
104
	$int 0x40
105
}
106
 
8045 pavelyakov 107
inline fastcall dword WaitEventTimeout(EBX)
3067 leency 108
{
7310 pavelyakov 109
	EAX = 23;
3067 leency 110
	$int 0x40
111
}
112
 
6978 leency 113
inline fastcall dword SetEventMask(EBX)
3067 leency 114
{
115
	$mov eax,40
116
	$int 0x40
117
}
118
 
119
 
5576 pavelyakov 120
inline fastcall pause(EBX)
3067 leency 121
{
122
	$mov eax, 5
123
	$int 0x40
124
}
125
 
126
inline fastcall word GetButtonID()
127
{
128
	$mov eax,17
129
	$int  0x40
130
	$shr eax,8
131
}
132
 
8396 leency 133
inline fastcall int GetKernelRev()
134
{
135
	char buf[16];
136
	EAX = 18;
137
	EBX = 13;
138
	ECX = #buf;
139
	$int 0x40
140
	EAX = ESDWORD[#buf+5];
141
}
142
 
3067 leency 143
inline fastcall dword GetFreeRAM()
144
{
145
	$mov eax, 18
146
	$mov ebx, 16
147
	$int 0x40
7358 leency 148
	//return eax = free RAM size in Kb
3067 leency 149
}
150
 
7358 leency 151
inline fastcall dword GetTotalRAM()
152
{
153
	$mov eax, 18
154
	$mov ebx, 17
155
	$int 0x40
156
	//return eax = total RAM size in Kb
157
}
158
 
7356 leency 159
inline fastcall int GetCpuIdleCount()
160
{
161
	EAX = 18;
162
	EBX = 4;
163
	$int 0x40
164
}
165
 
166
inline fastcall int GetCpuFrequency()
167
{
168
	EAX = 18;
169
	EBX = 5;
170
	$int 0x40
171
}
172
 
6791 leency 173
inline fastcall dword LoadDriver(ECX) //ECX - èìÿ äðàéâåðà
3067 leency 174
{
175
	$mov eax, 68
176
	$mov ebx, 16
177
	$int 0x40
6791 leency 178
	//return 0 - íåóäà÷à, èíà÷å eax = õýíäë äðàéâåðà
3067 leency 179
}
180
 
6791 leency 181
inline fastcall dword RuleDriver(ECX) //óêàçàòåëü íà óïðàâëÿþùóþ ñòðóêòóðó
3067 leency 182
{
183
	$mov eax, 68
184
	$mov ebx, 17
185
	$int 0x40
6791 leency 186
	//return eax = îïðåäåëÿåòñÿ äðàéâåðîì
3067 leency 187
}
188
 
189
struct proc_info
190
{
191
	#define SelfInfo -1
192
	dword	use_cpu;
7266 leency 193
	word	pos_in_stack,slot,rezerv1;
4137 leency 194
	unsigned char name[11];
3067 leency 195
	char	rezerv2;
196
	dword	adress,use_memory,ID,left,top,width,height;
197
	word	status_slot,rezerv3;
8012 leency 198
	dword	cleft,ctop,cwidth,cheight;
3067 leency 199
	char	status_window;
9089 leency 200
	byte    reserved[1024-71];
3067 leency 201
};
202
 
7225 leency 203
:void GetProcessInfo(dword _process_struct_pointer, _process_id)
3067 leency 204
{
7225 leency 205
	EAX = 9;
206
	EBX = _process_struct_pointer;
207
	ECX = _process_id;
3067 leency 208
	$int  0x40
209
}
210
 
211
inline fastcall int GetPointOwner( EBX, ECX) //ebx=m.x, ecx=m.y
212
{
213
	$mov eax,34
214
	$int 0x40
215
}
216
 
217
inline fastcall int GetProcessSlot( ECX)
218
{
219
	EAX = 18;
220
	EBX = 21;
221
	$int 0x40
222
}
223
 
224
inline fastcall int GetActiveProcess()
225
{
226
	EAX = 18;
227
	EBX = 7;
228
	$int 0x40
229
}
230
 
4081 leency 231
:int CheckActiveProcess(int Form_ID)
232
{
4166 leency 233
	int id9=GetProcessSlot(Form_ID);
234
	if (id9==GetActiveProcess()) return 1;
4081 leency 235
	return 0;
236
}
237
 
7266 leency 238
inline fastcall void ActivateWindow( ECX) //ECX - slot
3114 leency 239
{
240
	EAX = 18;
241
	EBX = 3;
242
	$int 0x40
243
}
244
 
9459 leency 245
:void ActivateWindow_Self()
246
{
247
	proc_info Form;
248
	GetProcessInfo(#Form, SelfInfo);
249
	ActivateWindow(GetProcessSlot(Form.ID));
250
}
251
 
7254 leency 252
:void RefreshWindow(dword ID_REFRESH,ID_ACTIVE)
253
{
254
	ActivateWindow(ID_REFRESH);
255
	ActivateWindow(ID_ACTIVE);
256
}
257
 
5421 leency 258
inline fastcall int MinimizeWindow()
259
{
260
	EAX = 18;
261
	EBX = 10;
262
	$int 0x40
263
}
264
 
5576 pavelyakov 265
inline fastcall int CreateThread(ECX,EDX)
3067 leency 266
{
267
	$mov eax,51
268
	$mov ebx,1
269
	$int 0x40
270
}
271
 
272
inline fastcall void SwitchToAnotherThread()
273
{
274
	$mov eax,68
275
	$mov ebx,1
276
	$int 0x40
277
}
278
 
3458 leency 279
inline fastcall int SendWindowMessage( ECX, EDX)
3444 leency 280
{
281
	$mov eax, 72
282
	$mov ebx, 1
283
	$int 0x40
284
}
285
 
3067 leency 286
inline fastcall int KillProcess( ECX)
287
{
288
	$mov eax,18;
289
	$mov ebx,18;
290
	$int 0x40
291
}
292
 
293
#define TURN_OFF 2
294
#define REBOOT 3
295
#define KERNEL 4
296
inline fastcall int ExitSystem( ECX)
297
{
298
	$mov eax, 18
299
	$mov ebx, 9
300
	$int 0x40
301
}
302
 
303
inline fastcall ExitProcess()
304
{
305
	$mov eax,-1;
306
	$int 0x40
307
}
308
 
309
//------------------------------------------------------------------------------
310
 
6791 leency 311
//eax = ÿçûê ñèñòåìû (1=eng, 2=fi, 3=ger, 4=rus)
7590 leency 312
///SYSFUNC DOESN'T WORK!!!  =>  https://bit.ly/2XNdiTD
6662 leency 313
#define SYS_LANG_ENG 1
314
#define SYS_LANG_FIN 2
315
#define SYS_LANG_GER 3
316
#define SYS_LANG_RUS 4
3067 leency 317
inline fastcall int GetSystemLanguage()
318
{
319
	EAX = 26;
320
	EBX = 5;
321
	$int 0x40
322
}
323
 
7235 leency 324
#define BUTTON_STYLE_FLAT 0
325
#define BUTTON_STYLE_GRADIENT 1
326
inline fastcall SetButtonStyle(ECX) //ECX - button style
327
{
328
	$mov eax,48
329
	$mov ebx,1
330
	int 64
331
}
332
 
3067 leency 333
inline fastcall GetSkinHeight()
334
{
335
	$push ebx
336
	$mov  eax,48
337
	$mov  ebx,4
338
	$int 0x40
339
	$pop  ebx
340
}
341
 
342
inline fastcall void SetSystemSkin( ECX)
343
{
344
	EAX = 48;
345
	EBX = 8;
346
	$int 0x40
347
}
348
 
349
inline fastcall int GetScreenWidth()
350
{
351
	$mov eax, 14
352
	$int 0x40
353
	$shr eax, 16
354
}
355
 
356
inline fastcall int GetScreenHeight()
357
{
358
	$mov eax, 14
359
	$int 0x40
360
	$and eax,0x0000FFFF
361
}
362
 
5421 leency 363
inline fastcall int GetClientTop()
364
{
365
	$mov eax, 48
366
	$mov ebx, 5
367
	$int 0x40
6058 leency 368
	$mov eax, ebx
369
	$shr eax, 16
5421 leency 370
}
371
 
372
inline fastcall int GetClientHeight()
373
{
374
	$mov eax, 48
375
	$mov ebx, 5
376
	$int 0x40
6058 leency 377
	$mov eax, ebx
5421 leency 378
}
379
 
3067 leency 380
inline fastcall dword LoadLibrary( ECX)
381
{
382
	$mov eax, 68
383
	$mov ebx, 19
384
	$int  0x40
385
}
386
 
387
inline fastcall int TestBit( EAX, CL)
388
{
389
	$shr eax,cl
390
	$and eax,1
391
}
392
 
7166 leency 393
:void SetClientScreenArea(dword _left, _right, _top, _bottom)
394
{
395
	EAX = 48;
396
	EBX = 6;
397
	ECX = _left * 65536 + _right;
398
	EDX = _top * 65536 + _bottom;
399
	$int 64;
400
}
401
 
3067 leency 402
//------------------------------------------------------------------------------
403
 
8946 leency 404
#define ROLLED_UP 0x04
6746 leency 405
:void DefineAndDrawWindow(dword _x, _y, _w, _h, _window_type, _bgcolor, _title, _flags)
3067 leency 406
{
407
	EAX = 12;              // function 12:tell os about windowdraw
408
	EBX = 1;
409
	$int 0x40
410
 
5576 pavelyakov 411
	$xor EAX,EAX
6746 leency 412
	EBX = _x << 16 + _w;
413
	ECX = _y << 16 + _h;
414
	EDX = _window_type << 24 | _bgcolor;
415
	EDI = _title;
416
	ESI = _flags;
3067 leency 417
	$int 0x40
418
 
419
	EAX = 12;              // function 12:tell os about windowdraw
420
	EBX = 2;
421
	$int 0x40
422
}
423
 
424
inline fastcall MoveSize( EBX,ECX,EDX,ESI)
425
{
426
	$mov eax, 67
427
	$int 0x40
428
}
429
 
430
inline fastcall void DrawTitle( ECX)
431
{
432
	EAX = 71;
433
	EBX = 1;
434
	$int 0x40;
435
}
436
 
6794 leency 437
// @EDX is a process id, -1 for self
6791 leency 438
// @ESI is a new LayerBehaviour
439
// @RETURN: EAX, 0 is fail, 1 is success
6794 leency 440
#define ZPOS_DESKTOP     -2
441
#define ZPOS_ALWAYS_BACK -1
442
#define ZPOS_NORMAL      0
443
#define ZPOS_ALWAYS_TOP  1
6791 leency 444
inline fastcall dword SetWindowLayerBehaviour(EDX, ESI)
445
{
446
	EAX = 18;
447
	EBX = 25;
448
	ECX = 2;
449
	$int 64
450
}
451
 
6735 leency 452
:void WriteTextB(dword x,y,byte fontType, dword color, str_offset)
3067 leency 453
{
9602 leency 454
	WriteText(x,y,fontType, color, str_offset);
3107 leency 455
	$add ebx, 1<<16
456
	$int 0x40
3067 leency 457
}
458
 
6735 leency 459
:void WriteText(dword x,y,byte fontType, dword color, str_offset)
3107 leency 460
{
461
	EAX = 4;
462
	EBX = x<<16+y;
463
	ECX = fontType<<24+color;
6735 leency 464
	EDX = str_offset;
3107 leency 465
	$int 0x40;
466
}
467
 
6742 leency 468
:dword WriteBufText(dword x,y,byte fontType, dword color, str_offset, buf_offset)
3467 leency 469
{
6742 leency 470
	EDI = buf_offset;
7373 leency 471
	WriteText(x,y, fontType, color, str_offset);
3467 leency 472
}
473
 
7373 leency 474
:void WriteTextWithBg(dword x,y,byte fontType, dword color, str_offset, bgcolor)
475
{
476
	EDI = bgcolor;
477
	WriteText(x,y, fontType, color, str_offset);
478
}
479
 
9693 leency 480
:void WriteNumber(dword x,y,byte fontType, dword color, flags, number_or_offset)
3067 leency 481
{
482
	EAX = 47;
9693 leency 483
	EBX = flags;
6735 leency 484
	ECX = number_or_offset;
3067 leency 485
	EDX = x<<16+y;
486
	ESI = fontType<<24+color;
487
	$int 0x40;
488
}
489
 
6735 leency 490
:void CopyScreen(dword dst_offset, x, y, w, h)
3067 leency 491
{
492
  EAX = 36;
6735 leency 493
  EBX = dst_offset;
3363 leency 494
  ECX = w << 16 + h;
3067 leency 495
  EDX = x << 16 + y;
496
  $int  0x40;
497
}
498
 
6791 leency 499
:dword GetPixelColorFromScreen(dword _x, _y)
3067 leency 500
{
6791 leency 501
	EAX = 35;
9597 leency 502
	EBX = _y * screen.w + _x;
6791 leency 503
	$int 64
3067 leency 504
}
505
 
7089 leency 506
#define DRAW_DESKTOP_BG_TILE 1
507
#define DRAW_DESKTOP_BG_STRETCH 2
7160 leency 508
:void SetBackgroundImage(dword w,h, image, mode)
7089 leency 509
{
510
	$mov     eax,15      // SF_BACKGROUND_SET 15 - work with desktop background graphics
511
	$mov     ebx,4       // SSF_MODE_BG 4 - set drawing mode for the background
512
	$mov     ecx,mode    // drawing mode - tile (1), stretch (2)
513
	$int     64
514
 
515
	$mov     eax,15      // SF_BACKGROUND_SET 15 - work with desktop background graphics
516
	$mov     ebx,1       // SSF_SIZE_BG=1 - set a size of the background image
517
	$mov     ecx,w       // width
518
	$mov     edx,h       // height
519
	$int     64
520
 
521
	$mov     eax,15      // SF_BACKGROUND_SET 15 - work with desktop background graphics
522
	$mov     ebx,5       // SSF_IMAGE_BG=5 - put block of pixels on the background image
523
	$mov     ecx,image   // pointer to the data in the format BBGGRRBBGGRR...
524
	$mov     edx,0       // offset in data of the background image
525
	ESI      = 3*w*h;    // size of data in bytes = 3 * number of pixels
526
	$int     64
527
 
528
	$mov     eax,15      // SF_BACKGROUND_SET 15 - work with desktop background graphics
529
	$mov     ebx,3       // SSF_REDRAW_BG=3 - redraw background
530
	$int     64
531
}
532
 
9602 leency 533
:void PutImage(dword x,y, w,h, data_offset)
3067 leency 534
{
535
	EAX = 7;
6735 leency 536
	EBX = data_offset;
3067 leency 537
	ECX = w<<16+h;
538
	EDX = x<<16+y;
539
	$int 0x40
540
}
541
 
7163 leency 542
:void PutPaletteImage(dword inbuf,w,h,x,y,bits,pal)
3067 leency 543
{
7806 leency 544
	if (h<1) || (w<0) return;
3067 leency 545
	EAX = 65;
7163 leency 546
	EBX = inbuf;
3067 leency 547
	ECX = w<<16+h;
548
	EDX = x<<16+y;
7163 leency 549
	ESI = bits;
550
	EDI = pal;
3067 leency 551
	EBP = 0;
552
	$int 0x40
6742 leency 553
}
3067 leency 554
 
555
inline fastcall void PutPixel( EBX,ECX,EDX)
556
{
557
  EAX=1;
558
  $int 0x40
559
}
560
 
6742 leency 561
:void DrawBar(dword x,y,w,h,color)
3067 leency 562
{
563
	EAX = 13;
564
	EBX = x<<16+w;
565
	ECX = y<<16+h;
6742 leency 566
	EDX = color;
6058 leency 567
	$int 0x40
3067 leency 568
}
569
 
7203 leency 570
:void DefineButton(dword x,y,w,h,id,color)
3067 leency 571
{
3107 leency 572
	EAX = 8;
7203 leency 573
	EDX = id + BT_DEL;
3107 leency 574
	$int 0x40;
7203 leency 575
	EDX = id;
576
	ESI = color;
3067 leency 577
	EBX = x<<16+w;
578
	ECX = y<<16+h;
579
	$int 0x40
580
}
581
 
6742 leency 582
:void UnsafeDefineButton(dword x,y,w,h,id,color)
3107 leency 583
{
584
	EAX = 8;
585
	EBX = x<<16+w;
586
	ECX = y<<16+h;
6742 leency 587
	EDX = id;
588
	ESI = color;
3107 leency 589
	$int 0x40
590
}
591
 
7160 leency 592
:void DefineDragableWindow(dword _x, _y, _w, _h)
6791 leency 593
{
9602 leency 594
	DefineAndDrawWindow(_x, _y, _w, _h, 0x41,0x000000,EDI,0b);
6791 leency 595
}
596
 
7166 leency 597
:void DefineUnDragableWindow(dword _x, _y, _w, _h)
598
{
9602 leency 599
	DefineAndDrawWindow(_x, _y, _w, _h, 0x01, 0, EDI, 0x01fffFFF);
7166 leency 600
}
601
 
6791 leency 602
:void EventDragWindow()
603
{
7422 leency 604
	proc_info Form1;
6791 leency 605
	dword tmp_x,tmp_y;
606
	dword z1,z2;
607
	tmp_x = mouse.x;
608
	tmp_y = mouse.y;
609
	do {
7422 leency 610
		GetProcessInfo(#Form1, SelfInfo);
6791 leency 611
		mouse.get();
612
		if (tmp_x!=mouse.x) || (tmp_y!=mouse.y)
613
		{
7422 leency 614
			z1 = Form1.left + mouse.x - tmp_x;
615
			z2 = Form1.top + mouse.y - tmp_y;
9597 leency 616
			if(z1<=10) || (z1>20000) z1=0; else if(z1>screen.w-Form1.width-10)z1=screen.w-Form1.width;
617
			if(z2<=10) || (z2>20000) z2=0; else if(z2>screen.h-Form1.height-10)z2=screen.h-Form1.height;
6791 leency 618
			MoveSize(z1 , z2, OLD, OLD);
619
			draw_window();
620
		}
621
		pause(1);
622
	} while (mouse.lkm);
623
}
624
 
625
:void DefineHiddenButton(dword _x, _y, _w, _h, _id)
626
{
9632 leency 627
	DefineButton(_x, _y, _w, _h, _id + BT_HIDE, 0);
6791 leency 628
}
629
 
3067 leency 630
inline fastcall void DeleteButton( EDX)
631
{
632
	EAX = 8;
633
	EDX += BT_DEL;
5630 leency 634
	$int 0x40
5548 leency 635
}
636
 
637
inline fastcall dword GetStartTime()
638
{
639
	$mov eax,26
640
	$mov ebx,9
641
	$int 0x40
5575 pavelyakov 642
}
643
 
5606 pavelyakov 644
:dword X_EventRedrawWindow,Y_EventRedrawWindow;
645
:void _EventRedrawWindow()
646
{
9602 leency 647
	DefineAndDrawWindow(X_EventRedrawWindow,Y_EventRedrawWindow,1,1,0x34,0xFFFFFF,EDI,0);
7244 leency 648
	ExitProcess();
5606 pavelyakov 649
}
5760 pavelyakov 650
:char REDRAW_BUFF_EVENT_[4096];
5606 pavelyakov 651
:void EventRedrawWindow(dword x,y)
652
{
653
	X_EventRedrawWindow = x;
654
	Y_EventRedrawWindow = y;
5760 pavelyakov 655
	CreateThread(#_EventRedrawWindow,#REDRAW_BUFF_EVENT_+4092);
5606 pavelyakov 656
}
657
 
5582 pavelyakov 658
:struct _screen
659
{
9597 leency 660
	dword w,h;
5582 pavelyakov 661
} screen;
662
 
9597 leency 663
:byte skin_h;
5582 pavelyakov 664
 
7773 leency 665
dword __generator;  // random number generator init
5646 pavelyakov 666
 
5575 pavelyakov 667
//The initialization of the initial data before running
9699 Coldy 668
#ifdef __COFF__
669
void start()
670
#else
7982 leency 671
:void ______INIT______()
9699 Coldy 672
#endif
5575 pavelyakov 673
{
9597 leency 674
	skin_h   = @GetSkinHeight();
675
	screen.w  = @GetScreenWidth()+1;
676
	screen.h = @GetScreenHeight()+1;
9699 Coldy 677
	__generator = @GetStartTime();
678
#ifndef __COFF__
7812 leency 679
	mem_init();
9699 Coldy 680
#endif
5575 pavelyakov 681
	main();
5598 pavelyakov 682
}
5648 pavelyakov 683
______STOP______:
6021 leency 684
#endif
685
 
686
#ifndef INCLUDE_MEM_H
687
#include "../lib/mem.h"
688
#endif
6058 leency 689
 
690
#ifndef INCLUDE_DEBUG_H
691
#include "../lib/debug.h"
7773 leency 692
#endif
693
 
694
#ifndef INCLUDE_IPC_H
695
#include "../lib/ipc.h"
8043 pavelyakov 696
#endif