Mercurial > MadButterfly
diff include/mb_X_supp.h @ 462:af4b506ad56f
Add backend layer to seperate the backend with the MBAF. Currently, X is the only backend. If we have more than one backend, we need to modify the Makefile to sleect the backend or implement a backend selection mechanism in the runtime.
author | wycc@122-116-38-188.HINET-IP.hinet.net |
---|---|
date | Wed, 28 Oct 2009 02:39:02 +0800 |
parents | e8a784a306d0 |
children | 586e50f82c1f |
line wrap: on
line diff
--- a/include/mb_X_supp.h Wed Oct 28 02:35:08 2009 +0800 +++ b/include/mb_X_supp.h Wed Oct 28 02:39:02 2009 +0800 @@ -23,14 +23,14 @@ typedef struct _X_MB_runtime X_MB_runtime_t; -extern void X_MB_handle_connection(X_MB_runtime_t *rt); -extern X_MB_runtime_t *X_MB_new(const char *display_name, int w, int h); -extern void X_MB_free(X_MB_runtime_t *xmb_rt); +extern void X_MB_handle_connection(void *rt); +extern void *X_MB_new(const char *display_name, int w, int h); +extern void X_MB_free(void *xmb_rt); -extern subject_t *X_MB_kbevents(X_MB_runtime_t *xmb_rt); -extern redraw_man_t *X_MB_rdman(X_MB_runtime_t *xmb_rt); -extern mb_tman_t *X_MB_tman(X_MB_runtime_t *xmb_rt); -extern ob_factory_t *X_MB_ob_factory(X_MB_runtime_t *xmb_rt); -extern mb_img_ldr_t *X_MB_img_ldr(X_MB_runtime_t *xmb_rt); +extern subject_t *X_MB_kbevents(void *xmb_rt); +extern redraw_man_t *X_MB_rdman(void *xmb_rt); +extern mb_tman_t *X_MB_tman(void *xmb_rt); +extern ob_factory_t *X_MB_ob_factory(void *xmb_rt); +extern mb_img_ldr_t *X_MB_img_ldr(void *xmb_rt); #endif