#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
pub struct CapstoneArchInfo<'a> {
header_name: &'a str,
cs_name: &'a str,
}
impl<'a> CapstoneArchInfo<'a> {
pub fn header_name(&self) -> &str {
self.header_name
}
pub fn cs_name(&self) -> &str {
self.cs_name
}
}
pub static ARCH_INCLUDES: &'static [CapstoneArchInfo<'static>] = &[
CapstoneArchInfo {
header_name: "arm.h",
cs_name: "arm",
},
CapstoneArchInfo {
header_name: "arm64.h",
cs_name: "arm64",
},
CapstoneArchInfo {
header_name: "evm.h",
cs_name: "evm",
},
CapstoneArchInfo {
header_name: "m680x.h",
cs_name: "m680x",
},
CapstoneArchInfo {
header_name: "m68k.h",
cs_name: "m68k",
},
CapstoneArchInfo {
header_name: "mips.h",
cs_name: "mips",
},
CapstoneArchInfo {
header_name: "ppc.h",
cs_name: "ppc",
},
CapstoneArchInfo {
header_name: "riscv.h",
cs_name: "riscv",
},
CapstoneArchInfo {
header_name: "sparc.h",
cs_name: "sparc",
},
CapstoneArchInfo {
header_name: "systemz.h",
cs_name: "sysz",
},
CapstoneArchInfo {
header_name: "tms320c64x.h",
cs_name: "tms320c64x",
},
CapstoneArchInfo {
header_name: "x86.h",
cs_name: "x86",
},
CapstoneArchInfo {
header_name: "xcore.h",
cs_name: "xcore",
},
];
pub static BINDINGS_FILE: &'static str = "capstone.rs";
pub static BINDINGS_IMPL_FILE: &'static str = "capstone_archs_impl.rs";