Mercurial > MadButterfly
diff include/mb_redraw_man.h @ 984:3fe8054457a8 refine_backend_if
Change interface of mb_backend_t for more concise
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 22 Nov 2010 00:42:29 +0800 |
parents | 4f8d53be9488 |
children | 2cbe3721dc9a |
line wrap: on
line diff
--- a/include/mb_redraw_man.h Thu Nov 18 12:10:51 2010 +0800 +++ b/include/mb_redraw_man.h Mon Nov 22 00:42:29 2010 +0800 @@ -243,31 +243,5 @@ #define MONITOR_READ 1 #define MONITOR_WRITE 2 -/*! \brief The backend engine mb_backend_t is used to define the interface to realize the MB. - * - * A backend is used to receive events from the system. The MB does not define the backend by itself. - * Instead, it define an interface which allow the lower layer to implement the event system. Each - * backend need to provides the following events. - * - * - keyboard event - * - timer event - * - image loader(?) - * - render manager(?) - */ -typedef struct { - - void *(*init)(const char *display,int w,int h); - void (*free)(void *be); - void (*add_event)(void *be,int type, int fd, mb_eventcb_t f,void *arg); - void (*remove_event)(void *be,int type, int fd); - void (*loop)(void *be); - subject_t *(*kbevents)(void *be); - redraw_man_t *(*rdman)(void *be); - mb_tman_t *(*tman)(void *be); - ob_factory_t *(*factory)(void *be); - mb_img_ldr_t *(*loader)(void *be); -} mb_backend_t; - -extern mb_backend_t backend; #endif /* __REDRAW_MAN_H_ */