eo2: sprinkle with 'const'

This commit is contained in:
Jérémy Zurcher 2013-12-26 16:33:18 +01:00 committed by Tom Hacohen
parent 8959832be4
commit ebc90200a6
2 changed files with 7 additions and 7 deletions

View File

@ -700,11 +700,11 @@ EAPI Eo_Op eo2_api_op_id_get(const void *api_func, const Eo_Op_Type);
// gets the real function pointer and the object data
#define eo2_call_resolve(op, call) eo2_call_resolve_internal(NULL, op, call)
EAPI Eina_Bool eo2_call_resolve_internal(const Eo_Class *klass, Eo_Op op, Eo2_Op_Call_Data *call);
EAPI Eina_Bool eo2_call_resolve_internal(const Eo_Class *klass, const Eo_Op op, Eo2_Op_Call_Data *call);
// start of eo2_do barrier, gets the object pointer and ref it, put it on the stask
EAPI Eina_Bool eo2_do_start(Eo *obj_id, Eina_Bool do_super);
EAPI Eina_Bool eo2_class_do_start(const Eo_Class *klass_id, Eina_Bool do_super);
EAPI Eina_Bool eo2_do_start(Eo *obj_id, const Eina_Bool do_super);
EAPI Eina_Bool eo2_class_do_start(const Eo_Class *klass_id, const Eina_Bool do_super);
// end of the eo2_do barrier, unref the obj, move the stack pointer
EAPI void eo2_do_end(Eo **ojb);

View File

@ -308,7 +308,7 @@ eo2_call_stack_depth()
}
EAPI Eina_Bool
eo2_do_start(Eo *obj_id, Eina_Bool do_super)
eo2_do_start(Eo *obj_id, const Eina_Bool do_super)
{
_Eo * obj;
const _Eo_Class *klass;
@ -354,7 +354,7 @@ eo2_do_start(Eo *obj_id, Eina_Bool do_super)
}
EAPI Eina_Bool
eo2_class_do_start(const Eo_Class *klass_id, Eina_Bool do_super EINA_UNUSED)
eo2_class_do_start(const Eo_Class *klass_id, const Eina_Bool do_super)
{
Eo2_Stack_Frame *fptr;
const _Eo_Class *klass;
@ -394,7 +394,7 @@ eo2_class_do_start(const Eo_Class *klass_id, Eina_Bool do_super EINA_UNUSED)
}
static inline void
_eo2_do_end(Eina_Bool obj_do)
_eo2_do_end(const Eina_Bool obj_do)
{
Eo2_Stack_Frame *fptr;
@ -427,7 +427,7 @@ eo2_class_do_end(const Eo_Class **klass_id EINA_UNUSED)
}
EAPI Eina_Bool
eo2_call_resolve_internal(const Eo_Class *klass_id, Eo_Op op, Eo2_Op_Call_Data *call)
eo2_call_resolve_internal(const Eo_Class *klass_id, const Eo_Op op, Eo2_Op_Call_Data *call)
{
Eo2_Stack_Frame *fptr;
const _Eo * obj;