From 3295c8faaa0dec55b6a0d08ec97fc22761ad7ced Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 25 Dec 2013 15:05:44 +0100 Subject: [PATCH] eo2: add macros to feed op_descs --- src/lib/eo/Eo.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index afa10bf..d128c6a 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -654,6 +654,12 @@ typedef struct _Eo2_Op_Call_Data _EO_FUNC_COMMON(Name, Ret, Func, DefRet) \ } +// FIXME: OP ID +#define EO2_OP_CONSTRUCTOR(_private) { _private, NULL, 1, EO_OP_TYPE_REGULAR, "Constructor"} +#define EO2_OP_DESTRUCTOR(_private) { _private, NULL, 2, EO_OP_TYPE_REGULAR, "Destructor"} +#define EO2_OP_FUNC(_private, _api, _doc) {_private, _api, EO_NOOP, EO_OP_TYPE_REGULAR, _doc} +#define EO2_OP_SENTINEL { NULL, NULL, 0, EO_OP_TYPE_INVALID, NULL} + // returns the OP id corresponding to the given api_func EAPI Eo_Op eo2_get_op_id(_Eo *obj, void *api_func); -- 2.7.4