unicorn-engine / unicorn

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, S390x, TriCore, X86)
http://www.unicorn-engine.org
GNU General Public License v2.0
7.33k stars 1.31k forks source link

fix: Wrap uc_hook to not expose ffi types in public api #1867

Closed mlgiraud closed 10 months ago

mlgiraud commented 10 months ago

The current api exposes raw pointers to the user. This change wraps the internal pointer type into a public facing type. This avoids direct use of the ffi for normal api use. Using the ffi directly is still possible.

wtdcode commented 10 months ago

Looks good and thanks!