capstone_sys::cs_open [] [src]

pub unsafe extern fn cs_open(arch: cs_arch, mode: cs_mode, handle: *mut csh) -> cs_err

Initialize a Capstone handle (non-null pointer) for a given architecture type arch (CS_ARCH_*) and hardware mode (CS_MODE_*).

Returns CS_ERR_OK on success, or other value on failure (refer to cs_err enum for detailed error).