refactoring: separated gobject.ffi with ffi definitions