sgl
annotate src/wsys.h @ 3:1b6c5dadb460
started hacking the X11 module
author | John Tsiombikas <nuclear@siggraph.org> |
---|---|
date | Wed, 11 May 2011 09:09:43 +0300 |
parents | 0c13a30be2c1 |
children | 648f8604d2b2 |
rev | line source |
---|---|
nuclear@1 | 1 #ifndef WSYS_H_ |
nuclear@1 | 2 #define WSYS_H_ |
nuclear@1 | 3 |
nuclear@1 | 4 struct wsys_module { |
nuclear@1 | 5 char *name; |
nuclear@1 | 6 int prio; |
nuclear@1 | 7 |
nuclear@1 | 8 int (*init)(void); |
nuclear@1 | 9 void (*shutdown)(void); |
nuclear@1 | 10 |
nuclear@1 | 11 int (*set_vidmode)(int, int, int); |
nuclear@1 | 12 int (*get_vidmode)(int*, int*, int*); |
nuclear@3 | 13 int (*create_window)(int, int, unsigned int); |
nuclear@3 | 14 void (*close_window)(int); |
nuclear@1 | 15 |
nuclear@1 | 16 struct wsys_module *next; |
nuclear@1 | 17 }; |
nuclear@1 | 18 |
nuclear@1 | 19 int sgl_register_module(struct wsys_module *ws); |
nuclear@3 | 20 void sgl_sort_modules(void); |
nuclear@1 | 21 struct wsys_module *sgl_wsys_module(void); |
nuclear@1 | 22 |
nuclear@1 | 23 void dbg(void); |
nuclear@1 | 24 |
nuclear@1 | 25 #endif /* WSYS_H_ */ |