diff include/mb_af.h @ 1044:5d4bc2a93c09

Merge from refine_backend_if branch
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 23 Nov 2010 11:58:04 +0800
parents 5d9def42df12
children
line wrap: on
line diff
--- a/include/mb_af.h	Tue Nov 23 08:04:09 2010 +0800
+++ b/include/mb_af.h	Tue Nov 23 11:58:04 2010 +0800
@@ -3,9 +3,11 @@
 #ifndef __APP_H
 #define __APP_H
 
+#include "mb_backend.h"
+
 typedef struct _mbapp mbaf_t;
 struct _mbapp {
-    void *rt;
+    mb_rt_t *rt;
     redraw_man_t *rdman;
     mb_sprite_t *rootsprite;
     mb_obj_t *root;
@@ -14,7 +16,7 @@
 };
 mbaf_t *mbaf_init(const char *module, const char *module_dir);
 void mbaf_set_data(mbaf_t *app,void *data);
-mb_tman_t *mbaf_get_timer(mbaf_t *app);
+mb_timer_man_t *mbaf_get_timer(mbaf_t *app);
 void mbaf_loop(mbaf_t *app);
 #define MBAF_DATA(app,type) ((type *) ((app)->private))
 #define MBAF_RDMAN(app) (((mbaf_t *) app)->rdman)