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

This commit is contained in:
Mark Giraud
2023-08-14 10:38:11 +02:00
parent 19a794b97e
commit bb7df65a1c
2 changed files with 69 additions and 56 deletions

View File

@@ -10,6 +10,7 @@ use core::ffi::c_void;
use libc::{c_char, c_int};
pub type uc_handle = *mut c_void;
// TODO: Use c_size_t as soon as it is stable. The c api exposes uc_hook as size_t
pub type uc_hook = *mut c_void;
pub type uc_context = *mut c_void;