?login_element?

Subversion Repositories NedoOS

Rev

Blame | Last modification | View Log | Download

  1. #ifndef OSCALLS_H
  2. #define OSCALLS_H
  3.  
  4. void OS_DROPAPP(unsigned char id);
  5. unsigned long OS_GETAPPMAINPAGES(unsigned char id);
  6. unsigned char OS_GETPAGEOWNER(unsigned char id);
  7. void YIELD(void);
  8. void OS_SETGFX(unsigned char mode);
  9. void OS_CLS(unsigned char color);
  10. void OS_SETCOLOR(unsigned char color);
  11. void OS_PRATTR(unsigned char attribute);
  12. void OS_SETXY(unsigned char x,unsigned char y);
  13. void OS_SETXYW(unsigned int w);
  14. void OS_SETMUSIC(void (*play)(void),unsigned char pg);
  15. void os_initstdio(void);
  16. void print(unsigned char *);
  17. unsigned int OS_GETXY(void);
  18. unsigned char OS_GETATTR(void);
  19. long time(void); //Alone Coder
  20.  
  21. //Kulich Area
  22.  
  23. struct diskOp
  24. {
  25.         unsigned char   drive;
  26.         void                    *BufAdr;
  27.         unsigned long   sector;
  28.         unsigned char   count;
  29. };
  30.  
  31. unsigned int OS_READSECTORS (struct diskOp *);
  32. unsigned int OS_WRITESECTORS (struct diskOp *);
  33. unsigned long OS_GETTIME (void); //out: bc=date, hl=time
  34.  
  35. //End of Kulich area
  36.  
  37.  
  38.  
  39.  
  40. void SETPG32KHIGH(unsigned char page);
  41.  
  42. unsigned int putf(const char *str);
  43. void putcsi(unsigned char);
  44. void printn(unsigned char *, unsigned int size);
  45. #define PUTCSI(_a) putcsi(_a)
  46. void putcsi2(unsigned int);
  47. #define PUTCSI2(_a,_b) putcsi(_a | (_b<<8))
  48.  
  49.  
  50. union APP_PAGES {
  51.         unsigned long l;
  52.         struct{
  53.                 unsigned char window_3;
  54.                 unsigned char window_2;
  55.                 unsigned char window_1;
  56.                 unsigned char window_0;
  57.         }pgs;
  58. };
  59. unsigned long OS_GETMAINPAGES(void);
  60. unsigned int OS_GETCONFIG(void);
  61. unsigned int os_reserv_1(void *);
  62. void OS_SCROLLUP(unsigned int xy, unsigned int wh);
  63. unsigned int _low_level_get(void);
  64. char *cgets(char *str);
  65. void conv1251to866(unsigned char * bufer);
  66.  
  67.  
  68. void exit(int e);
  69. unsigned char scrredraw(void);  //хёыш яЁшыюцхэшх ЁхрушЁєхЄ эр ёюс√Єшх redraw,
  70.                                                                 //Єю эхюсїюфшью юяЁхфхышЄ№ ётю■ ЇєэъЎш■ scrredraw
  71.                                                                 //тючтЁр∙рхЄ яюфьхэхээє■ ъэюяъє, юс√ўэю 0x00
  72. #define MOUSE_BUTTON_BIT_LMB 0x01
  73. #define MOUSE_BUTTON_BIT_RMB 0x02
  74.  
  75. extern unsigned char errno;
  76. extern unsigned int mouse_yx;
  77. extern unsigned char mouse_x;
  78. extern unsigned char mouse_y;
  79. extern unsigned char mouse_btns;
  80. extern unsigned char t1251to866[128];
  81.  
  82. #define INK_BLACK      0x00
  83. #define INK_BLUE       0x01
  84. #define INK_RED        0x02
  85. #define INK_MAGENTA    0x03
  86. #define INK_GREEN      0x04
  87. #define INK_CYAN       0x05
  88. #define INK_YELLOW     0x06
  89. #define INK_WHITE      0x07
  90. #define INK_WHITE_BRIGHT      0x47
  91.  
  92. #define PAPER_BLACK    0x00
  93. #define PAPER_BLUE     0x08
  94. #define PAPER_RED      0x10
  95. #define PAPER_MAGENTA  0x18
  96. #define PAPER_GREEN    0x20
  97. #define PAPER_CYAN     0x28
  98. #define PAPER_YELLOW   0x30
  99. #define PAPER_WHITE    0x38
  100.  
  101. #endif