1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
use libc::{c_char, c_void, size_t, ssize_t}; use crate::*; pub enum Dwelf_Strtab {} pub enum Dwelf_Strent {} extern "C" { pub fn dwelf_elf_gnu_debuglink(elf: *mut Elf, crc: *mut GElf_Word) -> *const c_char; pub fn dwelf_dwarf_gnu_debugaltlink( dwarf: *mut Dwarf, namep: *mut *const c_char, build_idp: *mut *const c_void, ) -> ssize_t; pub fn dwelf_elf_gnu_build_id(elf: *mut Elf, build_idp: *mut *const c_void) -> ssize_t; pub fn dwelf_scn_gnu_compressed_size(scn: *mut Elf_Scn) -> ssize_t; pub fn dwelf_strtab_init(nullstr: bool) -> *mut Dwelf_Strtab; pub fn dwelf_strtab_add(st: *mut Dwelf_Strtab, str: *const c_char) -> *mut Dwelf_Strent; pub fn dwelf_strtab_add_len( st: *mut Dwelf_Strtab, str: *const c_char, len: size_t, ) -> *mut Dwelf_Strent; pub fn dwelf_strtab_finalize(st: *mut Dwelf_Strtab, data: *mut Elf_Data) -> *mut Elf_Data; pub fn dwelf_strent_str(se: *mut Dwelf_Strent) -> *const c_char; pub fn dwelf_strtab_free(st: *mut Dwelf_Strtab); }