annotate include/mb_af.h @ 740:00a8c8a9e157

Check if an object valid in gen_v8_binding.m4
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 25 Aug 2010 10:07:33 +0800
parents 26c302b47de1
children 586e50f82c1f
rev   line source
456
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 #ifndef __APP_H
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 #define __APP_H
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 typedef struct _mbapp mbaf_t;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 struct _mbapp {
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 void *rt;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 redraw_man_t *rdman;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 mb_sprite_t *rootsprite;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 mb_obj_t *root;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 subject_t *kbevents;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11 void *private;
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 };
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 mbaf_t *mbaf_init(const char *module, const char *module_dir);
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 void mbaf_set_data(mbaf_t *app,void *data);
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
15 mb_tman_t *mbaf_get_timer(mbaf_t *app);
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 void mbaf_loop(mbaf_t *app);
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17 #define MBAF_DATA(app,type) ((type *) ((app)->private))
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 #define MBAF_RDMAN(app) (((mbaf_t *) app)->rdman)
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
19 #define MBAF_KB_SUBJECT(app) ((app)->kbevents)
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
20
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
21 #include "mbbutton.h"
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
22
26c302b47de1 Change name of header files.
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
23 #endif /* __MBAF_H_ */