?login_element?

Subversion Repositories NedoOS

Rev

Rev 2046 | 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. 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. signed long OS_GETKEY (void);// BC HL
  32. unsigned long OS_GETMOUSE(void);// BC HL
  33.  
  34. unsigned int OS_READSECTORS(struct diskOp *);
  35. unsigned int OS_WRITESECTORS(struct diskOp *);
  36. unsigned long OS_GETTIME(void); // out: bc=date, hl=time
  37. unsigned int OS_NEWPAGE(void);
  38. unsigned int OS_CHDIR(unsigned char *trgPathPtr);
  39. unsigned int OS_GETPATH(unsigned int curPathPtr); // in: de = ptr to buffer out: hl = ptr to last symbol of path
  40. unsigned int OS_SETSYSDRV(void);                                  // out: H: H!=0 -- ????? ??? ?? ????????. L: -- ??? ??????? ??????????? ????.
  41. unsigned int OS_NEWAPP(unsigned int trgPathPtr);
  42. unsigned int OS_RUNAPP(unsigned char pId); // e=id ;ACTIVATE DISABLED APP
  43. unsigned int OS_WAITPID(unsigned char pId);
  44. unsigned int OS_HIDEFROMPARENT(void);
  45. unsigned long OS_STARTAPP(unsigned long appParamsPtr);                                  // out: b=id, a=error, dehl=newapp pages in 0000,4000,8000,c000 ;MAKE NEW DISABLED APP
  46. unsigned int OS_RENAME(unsigned char *oldName, unsigned char *newName); // DE - ??? ???, ???????? ? ????? ??? ?????? ???? (ASCIIZ). HL - ????? ???, ???? ?? ?????? ??? ?? ????, ??? ? DE. // out HL - ????? ?? ??????? ??????? ??? ? ?? ???? (NOT MSXDOS compatible! with Drive/path!)
  47. unsigned int OS_DELETE(unsigned char *fileName);                                                // DE - ??? ???, ???????? ? ????? ??? ?????? ???? (ASCIIZ).; ? - ????. ?? 0x00, ? ???? ???.
  48. void OS_DIHALT(void);
  49. // End of Kulich area
  50.  
  51. void SETPG32KHIGH(unsigned char page);
  52.  
  53. unsigned int putf(const char *str);
  54. void putcsi(unsigned char);
  55. void printn(unsigned char *, unsigned int size);
  56. #define PUTCSI(_a) putcsi(_a)
  57. void putcsi2(unsigned int);
  58. #define PUTCSI2(_a, _b) putcsi(_a | (_b << 8))
  59.  
  60. union APP_PAGES
  61. {
  62.         unsigned long l;
  63.         struct
  64.         {
  65.                 unsigned char window_3;
  66.                 unsigned char window_2;
  67.                 unsigned char window_1;
  68.                 unsigned char window_0;
  69.                 unsigned char pId;
  70.                 unsigned char error;
  71.                 unsigned char f;
  72.         } pgs;
  73. };
  74. unsigned long OS_GETMAINPAGES(void);
  75. unsigned int OS_GETCONFIG(void);
  76. unsigned int os_reserv_1(void *);
  77. void OS_SCROLLUP(unsigned int xy, unsigned int wh);
  78. unsigned int _low_level_get(void);
  79. char *cgets(char *str);
  80. void conv1251to866(unsigned char *bufer);
  81.  
  82. void exit(int e);
  83. unsigned char scrredraw(void);
  84.  
  85. #define MOUSE_BUTTON_BIT_LMB 0x01
  86. #define MOUSE_BUTTON_BIT_RMB 0x02
  87.  
  88. extern unsigned char errno;
  89. extern unsigned int mouse_yx;
  90. extern unsigned char mouse_x;
  91. extern unsigned char mouse_y;
  92. extern unsigned char mouse_btns;
  93. extern unsigned char t1251to866[128];
  94.  
  95. #define INK_BLACK 0x00
  96. #define INK_BLUE 0x01
  97. #define INK_RED 0x02
  98. #define INK_MAGENTA 0x03
  99. #define INK_GREEN 0x04
  100. #define INK_CYAN 0x05
  101. #define INK_YELLOW 0x06
  102. #define INK_WHITE 0x07
  103. #define INK_WHITE_BRIGHT 0x47
  104.  
  105. #define PAPER_BLACK 0x00
  106. #define PAPER_BLUE 0x08
  107. #define PAPER_RED 0x10
  108. #define PAPER_MAGENTA 0x18
  109. #define PAPER_GREEN 0x20
  110. #define PAPER_CYAN 0x28
  111. #define PAPER_YELLOW 0x30
  112. #define PAPER_WHITE 0x38
  113.  
  114. #endif