sys_gfx.h 703 B

12345678910111213141516171819202122
  1. /* Window graphics service for ring-3 commands (see sys_gfx.c). */
  2. #ifndef SYS_GFX_H
  3. #define SYS_GFX_H
  4. #include "gfx.h"
  5. #include "syscall.h"
  6. struct text_screen;
  7. int sys_gfx_begin(struct sys_gfx_info *info);
  8. int sys_gfx_present(void);
  9. int sys_gfx_end(void);
  10. int sys_gfx_key_poll(void);
  11. /* WM-facing helpers. */
  12. struct gfx_canvas *sys_gfx_canvas_for(struct text_screen *screen);
  13. int sys_gfx_push_key(struct text_screen *screen, int k); /* 1 = consumed */
  14. void sys_gfx_kill_for_screen(struct text_screen *screen); /* window close */
  15. void sys_gfx_reap(unsigned int pid); /* IRQ context */
  16. void sys_gfx_collect(void); /* WM loop */
  17. #endif