comparison include/mb_af.h @ 456:26c302b47de1

Change name of header files.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 06 Aug 2009 15:38:04 +0800
parents
children 586e50f82c1f
comparison
equal deleted inserted replaced
455:58b6337fb3b2 456:26c302b47de1
1 #ifndef __APP_H
2 #define __APP_H
3
4 typedef struct _mbapp mbaf_t;
5 struct _mbapp {
6 void *rt;
7 redraw_man_t *rdman;
8 mb_sprite_t *rootsprite;
9 mb_obj_t *root;
10 subject_t *kbevents;
11 void *private;
12 };
13 mbaf_t *mbaf_init(const char *module, const char *module_dir);
14 void mbaf_set_data(mbaf_t *app,void *data);
15 mb_tman_t *mbaf_get_timer(mbaf_t *app);
16 void mbaf_loop(mbaf_t *app);
17 #define MBAF_DATA(app,type) ((type *) ((app)->private))
18 #define MBAF_RDMAN(app) (((mbaf_t *) app)->rdman)
19 #define MBAF_KB_SUBJECT(app) ((app)->kbevents)
20
21 #include "mbbutton.h"
22
23 #endif /* __MBAF_H_ */