fix ffi call to eo_add/do_internal

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
...refactoring

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
refactoring

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>