EFL 1.7 svn doobies
[profile/ivi/eina.git] / src / examples / eina_model_04_parrot.h
1 /*
2  * parrot.h
3  */
4
5 #ifndef PARROT_H_
6 #define PARROT_H_
7
8 #include "eina_model_04_animal.h"
9
10 extern const char *PARROT_MODEL_TYPE_NAME;
11 extern const Eina_Model_Type * const PARROT_TYPE;
12
13 #define PARROT_TYPE(x) ((Parrot_Type *) (eina_model_type_subclass_check((x), PARROT_TYPE) ? (x) : NULL))
14
15 typedef struct _Parrot_Type
16 {
17    Animal_Type parent_class;
18    void (*fly)(Eina_Model *m);
19 } Parrot_Type;
20
21 void parrot_init();
22 void parrot_fly(Eina_Model *m);
23
24 #endif /* PARROT_H_ */