fbee

diff src/fbeeimpl.h @ 0:88a2049be27b

fbee initial
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 05 Feb 2013 13:40:36 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/fbeeimpl.h	Tue Feb 05 13:40:36 2013 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +#ifndef FBEEIMPL_H_
     1.5 +#define FBEEIMPL_H_
     1.6 +
     1.7 +struct closure {
     1.8 +	void (*func)();
     1.9 +	void *cls;
    1.10 +};
    1.11 +
    1.12 +/* functions implemented by each graphics system module */
    1.13 +int fbee_sys_init(void);
    1.14 +void fbee_sys_destroy(void);
    1.15 +int fbee_sys_set_video(int width, int height, int bpp, unsigned int flags);
    1.16 +int fbee_sys_get_video(int *width, int *height, int *bpp);
    1.17 +int fbee_sys_process_events(void);
    1.18 +void fbee_sys_evloop(void);
    1.19 +void *fbee_sys_framebuffer(void);
    1.20 +void fbee_sys_update(void *img);
    1.21 +
    1.22 +struct closure *fbee_get_callback(int evtype);
    1.23 +
    1.24 +#endif	/* FBEEIMPL_H_ */