Mercurial > MadButterfly
comparison src/X_supp.c @ 1022:84006acab6af refine_backend_if
Use macros to hide the default backend
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 22 Nov 2010 15:20:11 +0800 |
parents | 7ccc094bdbe5 |
children | 407932b8a160 |
comparison
equal
deleted
inserted
replaced
1021:4f4abce1b5df | 1022:84006acab6af |
---|---|
1054 #endif | 1054 #endif |
1055 r = XFlush(xmb_rt->display); | 1055 r = XFlush(xmb_rt->display); |
1056 return r == 0? ERR: OK; | 1056 return r == 0? ERR: OK; |
1057 } | 1057 } |
1058 | 1058 |
1059 mb_backend_t backend = { _x_supp_new, | 1059 mb_backend_t mb_dfl_backend = { _x_supp_new, |
1060 _x_supp_new_with_win, | 1060 _x_supp_new_with_win, |
1061 | 1061 |
1062 _x_supp_free, | 1062 _x_supp_free, |
1063 _x_supp_free_keep_win, | 1063 _x_supp_free_keep_win, |
1064 _x_supp_add_event, | 1064 _x_supp_add_event, |
1065 _x_supp_remove_event, | 1065 _x_supp_remove_event, |
1066 _x_supp_event_loop, | 1066 _x_supp_event_loop, |
1067 _x_supp_flush, | 1067 _x_supp_flush, |
1068 | 1068 |
1069 _x_supp_kbevents, | 1069 _x_supp_kbevents, |
1070 _x_supp_rdman, | 1070 _x_supp_rdman, |
1071 _x_supp_timer_man, | 1071 _x_supp_timer_man, |
1072 _x_supp_ob_factory, | 1072 _x_supp_ob_factory, |
1073 _x_supp_img_ldr | 1073 _x_supp_img_ldr |
1074 }; | 1074 }; |
1075 | 1075 |
1076 #if 0 | 1076 #if 0 |
1077 /*! \defgroup x_supp_nodejs_sup Export functions for supporting nodejs plugin. | 1077 /*! \defgroup x_supp_nodejs_sup Export functions for supporting nodejs plugin. |
1078 * | 1078 * |
1079 * These functions are for internal using. | 1079 * These functions are for internal using. |