summaryrefslogtreecommitdiff
path: root/src/tests/eo/mixin/mixin_mixin.h
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-09-26 06:56:52 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-09-26 06:56:52 +0000
commit3b5a3448b7dfc53c2f129bdb04bea9f7a02741a6 (patch)
tree18ad8a6b1841e9832c85a46f887b2cd6d6dacc4b /src/tests/eo/mixin/mixin_mixin.h
parent195d31c73fef88cfaa803b07b2ae3cba983a4093 (diff)
merge: add eo
SVN revision: 77072
Diffstat (limited to 'src/tests/eo/mixin/mixin_mixin.h')
-rw-r--r--src/tests/eo/mixin/mixin_mixin.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/eo/mixin/mixin_mixin.h b/src/tests/eo/mixin/mixin_mixin.h
new file mode 100644
index 0000000000..745e5c4683
--- /dev/null
+++ b/src/tests/eo/mixin/mixin_mixin.h
@@ -0,0 +1,24 @@
1#ifndef MIXIN_H
2#define MIXIN_H
3
4extern EAPI Eo_Op MIXIN_BASE_ID;
5
6enum {
7 MIXIN_SUB_ID_AB_SUM_GET,
8 MIXIN_SUB_ID_LAST
9};
10
11#define MIXIN_ID(sub_id) (MIXIN_BASE_ID + sub_id)
12
13
14/**
15 * @def mixin_ab_sum_get(sum)
16 * @brief Get sum of a,b integer elements
17 * @param[out] sum integer pointer to sum - value
18 */
19#define mixin_ab_sum_get(sum) MIXIN_ID(MIXIN_SUB_ID_AB_SUM_GET), EO_TYPECHECK(int *, sum)
20
21#define MIXIN_CLASS mixin_class_get()
22const Eo_Class *mixin_class_get(void);
23
24#endif