comparison include/mb_X_supp.h @ 1011:02d52058d352 refine_backend_if

Make functions of X_supp.c static and fill fields of backend. - Make most functions in X_supp.c static - fill fields of backend variable.
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 00:42:30 +0800
parents 5b58e74988bc
children 7b503c7ed46f
comparison
equal deleted inserted replaced
1010:feea3784b7ff 1011:02d52058d352
23 23
24 /* @} */ 24 /* @} */
25 25
26 typedef struct _X_MB_runtime X_MB_runtime_t; 26 typedef struct _X_MB_runtime X_MB_runtime_t;
27 27
28 extern void X_MB_handle_connection(void *rt); 28 typedef Window MB_WINDOW;
29 extern void *X_MB_new(const char *display_name, int w, int h); 29 typedef Display *MB_DISPLAY;
30 extern void *X_MB_new_with_win(Display *display, Window win);
31 extern void X_MB_free(void *xmb_rt);
32 extern void X_MB_free_keep_win(void *rt);
33
34 extern subject_t *X_MB_kbevents(void *xmb_rt);
35 extern redraw_man_t *X_MB_rdman(void *xmb_rt);
36 extern mb_tman_t *X_MB_tman(void *xmb_rt);
37 extern ob_factory_t *X_MB_ob_factory(void *xmb_rt);
38 extern mb_img_ldr_t *X_MB_img_ldr(void *xmb_rt);
39
40 #define MB_WINDOW Window
41 30
42 #endif 31 #endif