diff 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
line wrap: on
line diff
--- a/include/mb_X_supp.h	Mon Nov 22 00:42:30 2010 +0800
+++ b/include/mb_X_supp.h	Mon Nov 22 00:42:30 2010 +0800
@@ -25,18 +25,7 @@
 
 typedef struct _X_MB_runtime X_MB_runtime_t;
 
-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_new_with_win(Display *display, Window win);
-extern void X_MB_free(void *xmb_rt);
-extern void X_MB_free_keep_win(void *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);
-
-#define MB_WINDOW Window
+typedef Window MB_WINDOW;
+typedef Display *MB_DISPLAY;
 
 #endif