changeset 1043:769921baf111 refine_backend_if

Add missed functions: _x_supp_reg_IO_factory and _x_supp_reg_timer_factory
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 23 Nov 2010 11:55:12 +0800
parents 18256f404193
children 5d4bc2a93c09 18cfb2105a66
files src/X_supp.c
diffstat 1 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/X_supp.c	Tue Nov 23 11:44:27 2010 +0800
+++ b/src/X_supp.c	Tue Nov 23 11:55:12 2010 +0800
@@ -1062,6 +1062,16 @@
     return r == 0? ERR: OK;
 }
 
+static void
+_x_supp_reg_IO_factory(mb_IO_factory_t *io_factory) {
+    _io_factory = io_factory;
+}
+
+static void
+_x_supp_reg_timer_factory(mb_timer_factory_t *timer_factory) {
+    _timer_factory = timer_factory;
+}
+
 mb_backend_t mb_dfl_backend = { _x_supp_new,
 				_x_supp_new_with_win,
 				
@@ -1076,7 +1086,10 @@
 				_x_supp_rdman,
 				_x_supp_timer_man,
 				_x_supp_ob_factory,
-				_x_supp_img_ldr
+				_x_supp_img_ldr,
+
+				_x_supp_reg_IO_factory,
+				_x_supp_reg_timer_factory,
 };
 
 #if 0