Mercurial > MadButterfly
comparison src/X_supp.c @ 1046:bf5adf1e275e
Remove unused functions
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 23 Nov 2010 13:13:48 +0800 |
parents | 769921baf111 |
children | 9d4f02715987 |
comparison
equal
deleted
inserted
replaced
1044:5d4bc2a93c09 | 1046:bf5adf1e275e |
---|---|
1089 _x_supp_img_ldr, | 1089 _x_supp_img_ldr, |
1090 | 1090 |
1091 _x_supp_reg_IO_factory, | 1091 _x_supp_reg_IO_factory, |
1092 _x_supp_reg_timer_factory, | 1092 _x_supp_reg_timer_factory, |
1093 }; | 1093 }; |
1094 | |
1095 #if 0 | |
1096 /*! \defgroup x_supp_nodejs_sup Export functions for supporting nodejs plugin. | |
1097 * | |
1098 * These functions are for internal using. | |
1099 * @{ | |
1100 */ | |
1101 /*! \brief Exported for nodejs plugin to call _x_supp_handle_x_event. | |
1102 */ | |
1103 void _x_supp_handle_x_event_for_nodejs(mb_rt_t *rt) { | |
1104 _x_supp_handle_x_event((X_supp_runtime_t *)rt); | |
1105 } | |
1106 | |
1107 /*! \brief Get X connect for nodejs plugin. | |
1108 */ | |
1109 int _x_supp_get_x_conn_for_nodejs(mb_rt_t *rt) { | |
1110 return XConnectionNumber(((X_supp_runtime_t *)rt)->display); | |
1111 } | |
1112 | |
1113 /*! \brief Flush buffer for the X connection of a runtime object. | |
1114 */ | |
1115 int _x_supp_flush_x_conn_for_nodejs(mb_rt_t *rt) { | |
1116 X_supp_runtime_t *xmb_rt = (X_supp_runtime_t *)rt; | |
1117 #ifdef XSHM | |
1118 XSHM_update(xmb_rt); | |
1119 #endif | |
1120 return XFlush(xmb_rt->display); | |
1121 } | |
1122 | |
1123 /*! \brief Handle single X event. | |
1124 */ | |
1125 void | |
1126 _x_supp_handle_single_event(mb_rt_t *rt, void *evt) { | |
1127 X_supp_runtime_t *xmb_rt = (X_supp_runtime_t *)rt; | |
1128 | |
1129 handle_single_x_event(xmb_rt, (XEvent *)evt); | |
1130 } | |
1131 | |
1132 /*! \brief Called at end of an iteration of X event loop. | |
1133 */ | |
1134 void | |
1135 _x_supp_no_more_event(mb_rt_t *rt) { | |
1136 X_supp_runtime_t *xmb_rt = (X_supp_runtime_t *)rt; | |
1137 | |
1138 no_more_event(xmb_rt); | |
1139 } | |
1140 | |
1141 /* @} */ | |
1142 #endif /* 0 */ |