2012-04-12 01:27:38 -07:00
|
|
|
#ifndef SIMPLE_H
|
|
|
|
#define SIMPLE_H
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
#include "Eo.h"
|
2012-04-12 01:27:38 -07:00
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
extern EAPI Eo_Op SIMPLE_BASE_ID;
|
2012-04-12 01:27:38 -07:00
|
|
|
|
|
|
|
enum {
|
|
|
|
SIMPLE_SUB_ID_A_SET,
|
|
|
|
SIMPLE_SUB_ID_A_PRINT,
|
|
|
|
SIMPLE_SUB_ID_LAST
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int a;
|
|
|
|
} Simple_Public_Data;
|
|
|
|
|
|
|
|
#define SIMPLE_ID(sub_id) (SIMPLE_BASE_ID + sub_id)
|
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
#define simple_a_set(a) SIMPLE_ID(SIMPLE_SUB_ID_A_SET), EO_TYPECHECK(int, a)
|
2012-04-24 01:56:49 -07:00
|
|
|
#define simple_a_print() SIMPLE_ID(SIMPLE_SUB_ID_A_PRINT)
|
2012-04-12 01:27:38 -07:00
|
|
|
|
2012-05-01 00:40:14 -07:00
|
|
|
extern const Eo_Event_Description _SIG_A_CHANGED;
|
2012-04-12 01:27:38 -07:00
|
|
|
#define SIG_A_CHANGED (&(_SIG_A_CHANGED))
|
|
|
|
|
|
|
|
#define SIMPLE_CLASS simple_class_get()
|
2012-05-01 00:40:14 -07:00
|
|
|
const Eo_Class *simple_class_get(void) EINA_CONST;
|
2012-04-12 01:27:38 -07:00
|
|
|
|
|
|
|
#endif
|