?login_element?

Subversion Repositories NedoOS

Rev

Rev 1666 | Go to most recent revision | Blame | Compare with Previous | 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.  
  20. //Kulich Area
  21.  
  22. struct diskOp
  23. {
  24.         unsigned char   drive;
  25.         void                    *BufAdr;
  26.         unsigned long   sector;
  27.         unsigned char   count;
  28. };
  29.  
  30. unsigned int OS_READSECTORS (struct diskOp *);
  31. unsigned int OS_WRITESECTORS (struct diskOp *);
  32.  
  33. //End of Kulich area
  34.  
  35.  
  36.  
  37.  
  38. void SETPG32KHIGH(unsigned char page);
  39.  
  40. unsigned int putf(const char *str);
  41. void putcsi(unsigned char);
  42. void printn(unsigned char *, unsigned int size);
  43. #define PUTCSI(_a) putcsi(_a)
  44. void putcsi2(unsigned int);
  45. #define PUTCSI2(_a,_b) putcsi(_a | (_b<<8))
  46.  
  47.  
  48. union APP_PAGES {
  49.         unsigned long l;
  50.         struct{
  51.                 unsigned char window_3;
  52.                 unsigned char window_2;
  53.                 unsigned char window_1;
  54.                 unsigned char window_0;
  55.         }pgs;
  56. };
  57. unsigned long OS_GETMAINPAGES(void);
  58. unsigned int OS_GETCONFIG(void);
  59. unsigned int os_reserv_1(void *);
  60. void OS_SCROLLUP(unsigned int xy, unsigned int wh);
  61. unsigned int _low_level_get(void);
  62. char *cgets(char *str);
  63. void conv1251to866(unsigned char * bufer);
  64.  
  65.  
  66. void exit(int e);
  67. unsigned char scrredraw(void);  //хёыш яЁшыюцхэшх ЁхрушЁєхЄ эр ёюс√Єшх redraw,
  68.                                                                 //Єю эхюсїюфшью юяЁхфхышЄ№ ётю■ ЇєэъЎш■ scrredraw
  69.                                                                 //тючтЁр∙рхЄ яюфьхэхээє■ ъэюяъє, юс√ўэю 0x00
  70. #define MOUSE_BUTTON_BIT_LMB 0x01
  71. #define MOUSE_BUTTON_BIT_RMB 0x02
  72.  
  73. extern unsigned char errno;
  74. extern unsigned int mouse_yx;
  75. extern unsigned char mouse_x;
  76. extern unsigned char mouse_y;
  77. extern unsigned char mouse_btns;
  78. extern unsigned char t1251to866[128];
  79.  
  80. #define INK_BLACK      0x00
  81. #define INK_BLUE       0x01
  82. #define INK_RED        0x02
  83. #define INK_MAGENTA    0x03
  84. #define INK_GREEN      0x04
  85. #define INK_CYAN       0x05
  86. #define INK_YELLOW     0x06
  87. #define INK_WHITE      0x07
  88. #define INK_WHITE_BRIGHT      0x47
  89.  
  90. #define PAPER_BLACK    0x00
  91. #define PAPER_BLUE     0x08
  92. #define PAPER_RED      0x10
  93. #define PAPER_MAGENTA  0x18
  94. #define PAPER_GREEN    0x20
  95. #define PAPER_CYAN     0x28
  96. #define PAPER_YELLOW   0x30
  97. #define PAPER_WHITE    0x38
  98.  
  99. #endif