EFL 1.7 svn doobies
[profile/ivi/eina.git] / src / examples / eina_model_04_animal.h
1 /*
2  * animal.h
3  */
4
5 #ifndef ANIMAL_H_
6 #define ANIMAL_H_
7
8 #include <Eina.h>
9
10 extern const char *ANIMAL_MODEL_TYPE_NAME;
11 extern const Eina_Model_Type * const ANIMAL_TYPE;
12
13 #define ANIMAL_TYPE(x) ((Animal_Type *) (eina_model_type_subclass_check((x), ANIMAL_TYPE) ? (x) : NULL))
14
15 typedef struct _Animal_Type
16 {
17    Eina_Model_Type parent_class;
18    void (*eat)(Eina_Model *m);
19    void (*breathe)(Eina_Model *m);
20 } Animal_Type;
21
22 void animal_init(void);
23 void animal_breathe(Eina_Model *m);
24 void animal_eat(Eina_Model *m);
25
26 #endif /* ANIMAL_H_ */