diff 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
line wrap: on
line diff
--- a/src/X_supp.c	Mon Nov 22 14:02:01 2010 +0800
+++ b/src/X_supp.c	Mon Nov 22 15:20:11 2010 +0800
@@ -1056,22 +1056,22 @@
     return r == 0? ERR: OK;
 }
 
-mb_backend_t backend = { _x_supp_new,
-			 _x_supp_new_with_win,
-			 
-			 _x_supp_free,
-			 _x_supp_free_keep_win,
-			 _x_supp_add_event,
-			 _x_supp_remove_event,
-			 _x_supp_event_loop,
-			 _x_supp_flush,
-			 
-			 _x_supp_kbevents,
-			 _x_supp_rdman,
-			 _x_supp_timer_man,
-			 _x_supp_ob_factory,
-			 _x_supp_img_ldr
-		};
+mb_backend_t mb_dfl_backend = { _x_supp_new,
+				_x_supp_new_with_win,
+				
+				_x_supp_free,
+				_x_supp_free_keep_win,
+				_x_supp_add_event,
+				_x_supp_remove_event,
+				_x_supp_event_loop,
+				_x_supp_flush,
+				
+				_x_supp_kbevents,
+				_x_supp_rdman,
+				_x_supp_timer_man,
+				_x_supp_ob_factory,
+				_x_supp_img_ldr
+};
 
 #if 0
 /*! \defgroup x_supp_nodejs_sup Export functions for supporting nodejs plugin.