idakit-sys 0.1.0

Raw FFI bindings to IDA Pro's idalib runtime and the idakit C++ facade
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Type-information facade (`idakit_func_type`, `idakit_type_*`).

use std::ffi::c_char;

use crate::Address;

unsafe extern "C" {
    pub fn idakit_func_type(address: Address, buf: *mut c_char, cap: usize) -> i64;

    /// Exclusive upper bound on local-type ordinals: valid ordinals run `1..limit`.
    pub fn idakit_type_ordinal_limit() -> u32;

    /// Name of the type at `ordinal` into `(buf, cap)`, returning its full length (0 for an
    /// anonymous type, negative if the ordinal holds no type).
    pub fn idakit_type_name_at(ordinal: u32, buf: *mut c_char, cap: usize) -> i64;
}