comparison 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
comparison
equal deleted inserted replaced
461:61a0bceb369d 462:af4b506ad56f
21 21
22 /* @} */ 22 /* @} */
23 23
24 typedef struct _X_MB_runtime X_MB_runtime_t; 24 typedef struct _X_MB_runtime X_MB_runtime_t;
25 25
26 extern void X_MB_handle_connection(X_MB_runtime_t *rt); 26 extern void X_MB_handle_connection(void *rt);
27 extern X_MB_runtime_t *X_MB_new(const char *display_name, int w, int h); 27 extern void *X_MB_new(const char *display_name, int w, int h);
28 extern void X_MB_free(X_MB_runtime_t *xmb_rt); 28 extern void X_MB_free(void *xmb_rt);
29 29
30 extern subject_t *X_MB_kbevents(X_MB_runtime_t *xmb_rt); 30 extern subject_t *X_MB_kbevents(void *xmb_rt);
31 extern redraw_man_t *X_MB_rdman(X_MB_runtime_t *xmb_rt); 31 extern redraw_man_t *X_MB_rdman(void *xmb_rt);
32 extern mb_tman_t *X_MB_tman(X_MB_runtime_t *xmb_rt); 32 extern mb_tman_t *X_MB_tman(void *xmb_rt);
33 extern ob_factory_t *X_MB_ob_factory(X_MB_runtime_t *xmb_rt); 33 extern ob_factory_t *X_MB_ob_factory(void *xmb_rt);
34 extern mb_img_ldr_t *X_MB_img_ldr(X_MB_runtime_t *xmb_rt); 34 extern mb_img_ldr_t *X_MB_img_ldr(void *xmb_rt);
35 35
36 #endif 36 #endif