EFL 1.7 svn doobies
[profile/ivi/eina.git] / src / examples / eina_model_04_human.h
1 /*
2  * human.h
3  */
4
5 #ifndef HUMAN_H_
6 #define HUMAN_H_
7
8 #include "eina_model_04_animal.h"
9
10 extern const char *HUMAN_MODEL_TYPE_NAME;
11 extern const Eina_Model_Type * const HUMAN_TYPE;
12
13 #define HUMAN_TYPE(x) ((Human_Type *) (eina_model_type_subclass_check((x), ANIMAL_TYPE) ? (x) : NULL))
14
15 typedef struct _Human_Type
16 {
17    Animal_Type parent_class;
18    void (*walk)(Eina_Model *m);
19 } Human_Type;
20
21 void human_init();
22 void human_walk(Eina_Model *m);
23
24 #endif /* HUMAN_H_ */