ctf-api.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. /* Public API to libctf.
  2. Copyright (C) 2019-2020 Free Software Foundation, Inc.
  3. This file is part of libctf.
  4. libctf is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. This program is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. See the GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; see the file COPYING. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. /* This header file defines the interfaces available from the CTF debugger
  16. library, libctf. This API can be used by a debugger to operate on data in
  17. the Compact ANSI-C Type Format (CTF). */
  18. #ifndef _CTF_API_H
  19. #define _CTF_API_H
  20. #include <sys/types.h>
  21. #include <ctf.h>
  22. #include <zlib.h>
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27. /* Clients can open one or more CTF containers and obtain a pointer to an
  28. opaque ctf_file_t. Types are identified by an opaque ctf_id_t token.
  29. They can also open or create read-only archives of CTF containers in a
  30. ctf_archive_t.
  31. These opaque definitions allow libctf to evolve without breaking clients. */
  32. typedef struct ctf_file ctf_file_t;
  33. typedef struct ctf_archive_internal ctf_archive_t;
  34. typedef unsigned long ctf_id_t;
  35. /* This opaque definition allows libctf to accept BFD data structures without
  36. importing all the BFD noise into users' namespaces. */
  37. struct bfd;
  38. /* If the debugger needs to provide the CTF library with a set of raw buffers
  39. for use as the CTF data, symbol table, and string table, it can do so by
  40. filling in ctf_sect_t structures and passing them to ctf_bufopen().
  41. The contents of this structure must always be in native endianness (no
  42. byteswapping is performed). */
  43. typedef struct ctf_sect
  44. {
  45. const char *cts_name; /* Section name (if any). */
  46. const void *cts_data; /* Pointer to section data. */
  47. size_t cts_size; /* Size of data in bytes. */
  48. size_t cts_entsize; /* Size of each section entry (symtab only). */
  49. } ctf_sect_t;
  50. /* A minimal symbol extracted from a linker's internal symbol table
  51. representation. */
  52. typedef struct ctf_link_sym
  53. {
  54. /* The st_name will not be accessed outside the call to
  55. ctf_link_shuffle_syms(). */
  56. const char *st_name;
  57. uint32_t st_shndx;
  58. uint32_t st_type;
  59. uint32_t st_value;
  60. } ctf_link_sym_t;
  61. /* Indication of how to share types when linking. */
  62. /* Share all types thare are not in conflict. The default. */
  63. #define CTF_LINK_SHARE_UNCONFLICTED 0x0
  64. /* Share only types that are used by multiple inputs. Not implemented yet. */
  65. #define CTF_LINK_SHARE_DUPLICATED 0x1
  66. /* Symbolic names for CTF sections. */
  67. typedef enum ctf_sect_names
  68. {
  69. CTF_SECT_HEADER,
  70. CTF_SECT_LABEL,
  71. CTF_SECT_OBJT,
  72. CTF_SECT_FUNC,
  73. CTF_SECT_VAR,
  74. CTF_SECT_TYPE,
  75. CTF_SECT_STR
  76. } ctf_sect_names_t;
  77. /* Encoding information for integers, floating-point values, and certain other
  78. intrinsics can be obtained by calling ctf_type_encoding(), below. The flags
  79. field will contain values appropriate for the type defined in <ctf.h>. */
  80. typedef struct ctf_encoding
  81. {
  82. uint32_t cte_format; /* Data format (CTF_INT_* or CTF_FP_* flags). */
  83. uint32_t cte_offset; /* Offset of value in bits. */
  84. uint32_t cte_bits; /* Size of storage in bits. */
  85. } ctf_encoding_t;
  86. typedef struct ctf_membinfo
  87. {
  88. ctf_id_t ctm_type; /* Type of struct or union member. */
  89. unsigned long ctm_offset; /* Offset of member in bits. */
  90. } ctf_membinfo_t;
  91. typedef struct ctf_arinfo
  92. {
  93. ctf_id_t ctr_contents; /* Type of array contents. */
  94. ctf_id_t ctr_index; /* Type of array index. */
  95. uint32_t ctr_nelems; /* Number of elements. */
  96. } ctf_arinfo_t;
  97. typedef struct ctf_funcinfo
  98. {
  99. ctf_id_t ctc_return; /* Function return type. */
  100. uint32_t ctc_argc; /* Number of typed arguments to function. */
  101. uint32_t ctc_flags; /* Function attributes (see below). */
  102. } ctf_funcinfo_t;
  103. typedef struct ctf_lblinfo
  104. {
  105. ctf_id_t ctb_type; /* Last type associated with the label. */
  106. } ctf_lblinfo_t;
  107. typedef struct ctf_snapshot_id
  108. {
  109. unsigned long dtd_id; /* Highest DTD ID at time of snapshot. */
  110. unsigned long snapshot_id; /* Snapshot id at time of snapshot. */
  111. } ctf_snapshot_id_t;
  112. #define CTF_FUNC_VARARG 0x1 /* Function arguments end with varargs. */
  113. /* Functions that return a ctf_id_t use the following value to indicate failure.
  114. ctf_errno() can be used to obtain an error code. Functions that return
  115. a straight integral -1 also use ctf_errno(). */
  116. #define CTF_ERR ((ctf_id_t) -1L)
  117. #define ECTF_BASE 1000 /* Base value for libctf errnos. */
  118. enum
  119. {
  120. ECTF_FMT = ECTF_BASE, /* File is not in CTF or ELF format. */
  121. ECTF_BFDERR, /* BFD error. */
  122. ECTF_CTFVERS, /* CTF version is more recent than libctf. */
  123. ECTF_BFD_AMBIGUOUS, /* Ambiguous BFD target. */
  124. ECTF_SYMTAB, /* Symbol table uses invalid entry size. */
  125. ECTF_SYMBAD, /* Symbol table data buffer invalid. */
  126. ECTF_STRBAD, /* String table data buffer invalid. */
  127. ECTF_CORRUPT, /* File data corruption detected. */
  128. ECTF_NOCTFDATA, /* ELF file does not contain CTF data. */
  129. ECTF_NOCTFBUF, /* Buffer does not contain CTF data. */
  130. ECTF_NOSYMTAB, /* Symbol table data is not available. */
  131. ECTF_NOPARENT, /* Parent CTF container is not available. */
  132. ECTF_DMODEL, /* Data model mismatch. */
  133. ECTF_LINKADDEDLATE, /* File added to link too late. */
  134. ECTF_ZALLOC, /* Failed to allocate (de)compression buffer. */
  135. ECTF_DECOMPRESS, /* Failed to decompress CTF data. */
  136. ECTF_STRTAB, /* String table for this string is missing. */
  137. ECTF_BADNAME, /* String offset is corrupt w.r.t. strtab. */
  138. ECTF_BADID, /* Invalid type ID number. */
  139. ECTF_NOTSOU, /* Type is not a struct or union. */
  140. ECTF_NOTENUM, /* Type is not an enum. */
  141. ECTF_NOTSUE, /* Type is not a struct, union, or enum. */
  142. ECTF_NOTINTFP, /* Type is not an integer, float, or enum. */
  143. ECTF_NOTARRAY, /* Type is not an array. */
  144. ECTF_NOTREF, /* Type does not reference another type. */
  145. ECTF_NAMELEN, /* Buffer is too small to hold type name. */
  146. ECTF_NOTYPE, /* No type found corresponding to name. */
  147. ECTF_SYNTAX, /* Syntax error in type name. */
  148. ECTF_NOTFUNC, /* Symbol entry or type is not a function. */
  149. ECTF_NOFUNCDAT, /* No func info available for function. */
  150. ECTF_NOTDATA, /* Symtab entry does not refer to a data obj. */
  151. ECTF_NOTYPEDAT, /* No type info available for object. */
  152. ECTF_NOLABEL, /* No label found corresponding to name. */
  153. ECTF_NOLABELDATA, /* File does not contain any labels. */
  154. ECTF_NOTSUP, /* Feature not supported. */
  155. ECTF_NOENUMNAM, /* Enum element name not found. */
  156. ECTF_NOMEMBNAM, /* Member name not found. */
  157. ECTF_RDONLY, /* CTF container is read-only. */
  158. ECTF_DTFULL, /* CTF type is full (no more members allowed). */
  159. ECTF_FULL, /* CTF container is full. */
  160. ECTF_DUPLICATE, /* Duplicate member or variable name. */
  161. ECTF_CONFLICT, /* Conflicting type definition present. */
  162. ECTF_OVERROLLBACK, /* Attempt to roll back past a ctf_update. */
  163. ECTF_COMPRESS, /* Failed to compress CTF data. */
  164. ECTF_ARCREATE, /* Error creating CTF archive. */
  165. ECTF_ARNNAME, /* Name not found in CTF archive. */
  166. ECTF_SLICEOVERFLOW, /* Overflow of type bitness or offset in slice. */
  167. ECTF_DUMPSECTUNKNOWN, /* Unknown section number in dump. */
  168. ECTF_DUMPSECTCHANGED, /* Section changed in middle of dump. */
  169. ECTF_NOTYET, /* Feature not yet implemented. */
  170. ECTF_INTERNAL, /* Internal error in link. */
  171. ECTF_NONREPRESENTABLE /* Type not representable in CTF. */
  172. };
  173. /* The CTF data model is inferred to be the caller's data model or the data
  174. model of the given object, unless ctf_setmodel() is explicitly called. */
  175. #define CTF_MODEL_ILP32 1 /* Object data model is ILP32. */
  176. #define CTF_MODEL_LP64 2 /* Object data model is LP64. */
  177. #ifdef _LP64
  178. # define CTF_MODEL_NATIVE CTF_MODEL_LP64
  179. #else
  180. # define CTF_MODEL_NATIVE CTF_MODEL_ILP32
  181. #endif
  182. /* Dynamic CTF containers can be created using ctf_create(). The ctf_add_*
  183. routines can be used to add new definitions to the dynamic container.
  184. New types are labeled as root or non-root to determine whether they are
  185. visible at the top-level program scope when subsequently doing a lookup. */
  186. #define CTF_ADD_NONROOT 0 /* Type only visible in nested scope. */
  187. #define CTF_ADD_ROOT 1 /* Type visible at top-level scope. */
  188. /* These typedefs are used to define the signature for callback functions
  189. that can be used with the iteration and visit functions below. */
  190. typedef int ctf_visit_f (const char *name, ctf_id_t type, unsigned long offset,
  191. int depth, void *arg);
  192. typedef int ctf_member_f (const char *name, ctf_id_t membtype,
  193. unsigned long offset, void *arg);
  194. typedef int ctf_enum_f (const char *name, int val, void *arg);
  195. typedef int ctf_variable_f (const char *name, ctf_id_t type, void *arg);
  196. typedef int ctf_type_f (ctf_id_t type, void *arg);
  197. typedef int ctf_type_all_f (ctf_id_t type, int flag, void *arg);
  198. typedef int ctf_label_f (const char *name, const ctf_lblinfo_t *info,
  199. void *arg);
  200. typedef int ctf_archive_member_f (ctf_file_t *fp, const char *name, void *arg);
  201. typedef int ctf_archive_raw_member_f (const char *name, const void *content,
  202. size_t len, void *arg);
  203. typedef char *ctf_dump_decorate_f (ctf_sect_names_t sect,
  204. char *line, void *arg);
  205. typedef struct ctf_dump_state ctf_dump_state_t;
  206. /* Opening. These mostly return an abstraction over both CTF files and CTF
  207. archives: so they can be used to open both. CTF files will appear to be an
  208. archive with one member named '.ctf'. The low-level functions
  209. ctf_simple_open() and ctf_bufopen() return ctf_file_t's directly, and cannot
  210. be used on CTF archives. */
  211. extern ctf_archive_t *ctf_bfdopen (struct bfd *, int *);
  212. extern ctf_archive_t *ctf_bfdopen_ctfsect (struct bfd *, const ctf_sect_t *,
  213. int *);
  214. extern ctf_archive_t *ctf_fdopen (int fd, const char *filename,
  215. const char *target, int *errp);
  216. extern ctf_archive_t *ctf_open (const char *filename,
  217. const char *target, int *errp);
  218. extern void ctf_close (ctf_archive_t *);
  219. extern ctf_sect_t ctf_getdatasect (const ctf_file_t *);
  220. extern ctf_archive_t *ctf_get_arc (const ctf_file_t *);
  221. extern ctf_archive_t *ctf_arc_open (const char *, int *);
  222. extern void ctf_arc_close (ctf_archive_t *);
  223. extern ctf_file_t *ctf_arc_open_by_name (const ctf_archive_t *,
  224. const char *, int *);
  225. extern ctf_file_t *ctf_arc_open_by_name_sections (const ctf_archive_t *,
  226. const ctf_sect_t *,
  227. const ctf_sect_t *,
  228. const char *, int *);
  229. /* The next functions return or close real CTF files, or write out CTF archives,
  230. not opaque containers around either. */
  231. extern ctf_file_t *ctf_simple_open (const char *, size_t, const char *, size_t,
  232. size_t, const char *, size_t, int *);
  233. extern ctf_file_t *ctf_bufopen (const ctf_sect_t *, const ctf_sect_t *,
  234. const ctf_sect_t *, int *);
  235. extern void ctf_file_close (ctf_file_t *);
  236. extern int ctf_arc_write (const char *, ctf_file_t **, size_t,
  237. const char **, size_t);
  238. extern int ctf_arc_write_fd (int, ctf_file_t **, size_t, const char **,
  239. size_t);
  240. extern const char *ctf_cuname (ctf_file_t *);
  241. extern int ctf_cuname_set (ctf_file_t *, const char *);
  242. extern ctf_file_t *ctf_parent_file (ctf_file_t *);
  243. extern const char *ctf_parent_name (ctf_file_t *);
  244. extern int ctf_parent_name_set (ctf_file_t *, const char *);
  245. extern int ctf_type_isparent (ctf_file_t *, ctf_id_t);
  246. extern int ctf_type_ischild (ctf_file_t *, ctf_id_t);
  247. extern int ctf_import (ctf_file_t *, ctf_file_t *);
  248. extern int ctf_setmodel (ctf_file_t *, int);
  249. extern int ctf_getmodel (ctf_file_t *);
  250. extern void ctf_setspecific (ctf_file_t *, void *);
  251. extern void *ctf_getspecific (ctf_file_t *);
  252. extern int ctf_errno (ctf_file_t *);
  253. extern const char *ctf_errmsg (int);
  254. extern int ctf_version (int);
  255. extern int ctf_func_info (ctf_file_t *, unsigned long, ctf_funcinfo_t *);
  256. extern int ctf_func_args (ctf_file_t *, unsigned long, uint32_t, ctf_id_t *);
  257. extern int ctf_func_type_info (ctf_file_t *, ctf_id_t, ctf_funcinfo_t *);
  258. extern int ctf_func_type_args (ctf_file_t *, ctf_id_t, uint32_t, ctf_id_t *);
  259. extern ctf_id_t ctf_lookup_by_name (ctf_file_t *, const char *);
  260. extern ctf_id_t ctf_lookup_by_symbol (ctf_file_t *, unsigned long);
  261. extern ctf_id_t ctf_lookup_variable (ctf_file_t *, const char *);
  262. extern ctf_id_t ctf_type_resolve (ctf_file_t *, ctf_id_t);
  263. extern char *ctf_type_aname (ctf_file_t *, ctf_id_t);
  264. extern char *ctf_type_aname_raw (ctf_file_t *, ctf_id_t);
  265. extern ssize_t ctf_type_lname (ctf_file_t *, ctf_id_t, char *, size_t);
  266. extern char *ctf_type_name (ctf_file_t *, ctf_id_t, char *, size_t);
  267. extern ssize_t ctf_type_size (ctf_file_t *, ctf_id_t);
  268. extern ssize_t ctf_type_align (ctf_file_t *, ctf_id_t);
  269. extern int ctf_type_kind (ctf_file_t *, ctf_id_t);
  270. extern ctf_id_t ctf_type_reference (ctf_file_t *, ctf_id_t);
  271. extern ctf_id_t ctf_type_pointer (ctf_file_t *, ctf_id_t);
  272. extern int ctf_type_encoding (ctf_file_t *, ctf_id_t, ctf_encoding_t *);
  273. extern int ctf_type_visit (ctf_file_t *, ctf_id_t, ctf_visit_f *, void *);
  274. extern int ctf_type_cmp (ctf_file_t *, ctf_id_t, ctf_file_t *, ctf_id_t);
  275. extern int ctf_type_compat (ctf_file_t *, ctf_id_t, ctf_file_t *, ctf_id_t);
  276. extern int ctf_member_info (ctf_file_t *, ctf_id_t, const char *,
  277. ctf_membinfo_t *);
  278. extern int ctf_array_info (ctf_file_t *, ctf_id_t, ctf_arinfo_t *);
  279. extern const char *ctf_enum_name (ctf_file_t *, ctf_id_t, int);
  280. extern int ctf_enum_value (ctf_file_t *, ctf_id_t, const char *, int *);
  281. extern void ctf_label_set (ctf_file_t *, const char *);
  282. extern const char *ctf_label_get (ctf_file_t *);
  283. extern const char *ctf_label_topmost (ctf_file_t *);
  284. extern int ctf_label_info (ctf_file_t *, const char *, ctf_lblinfo_t *);
  285. extern int ctf_member_iter (ctf_file_t *, ctf_id_t, ctf_member_f *, void *);
  286. extern int ctf_enum_iter (ctf_file_t *, ctf_id_t, ctf_enum_f *, void *);
  287. extern int ctf_type_iter (ctf_file_t *, ctf_type_f *, void *);
  288. extern int ctf_type_iter_all (ctf_file_t *, ctf_type_all_f *, void *);
  289. extern int ctf_label_iter (ctf_file_t *, ctf_label_f *, void *);
  290. extern int ctf_variable_iter (ctf_file_t *, ctf_variable_f *, void *);
  291. extern int ctf_archive_iter (const ctf_archive_t *, ctf_archive_member_f *,
  292. void *);
  293. /* This function alone does not currently operate on CTF files masquerading
  294. as archives, and returns -EINVAL: the raw data is no longer available. It is
  295. expected to be used only by archiving tools, in any case, which have no need
  296. to deal with non-archives at all. */
  297. extern int ctf_archive_raw_iter (const ctf_archive_t *,
  298. ctf_archive_raw_member_f *, void *);
  299. extern char *ctf_dump (ctf_file_t *, ctf_dump_state_t **state,
  300. ctf_sect_names_t sect, ctf_dump_decorate_f *,
  301. void *arg);
  302. extern ctf_id_t ctf_add_array (ctf_file_t *, uint32_t,
  303. const ctf_arinfo_t *);
  304. extern ctf_id_t ctf_add_const (ctf_file_t *, uint32_t, ctf_id_t);
  305. extern ctf_id_t ctf_add_enum_encoded (ctf_file_t *, uint32_t, const char *,
  306. const ctf_encoding_t *);
  307. extern ctf_id_t ctf_add_enum (ctf_file_t *, uint32_t, const char *);
  308. extern ctf_id_t ctf_add_float (ctf_file_t *, uint32_t,
  309. const char *, const ctf_encoding_t *);
  310. extern ctf_id_t ctf_add_forward (ctf_file_t *, uint32_t, const char *,
  311. uint32_t);
  312. extern ctf_id_t ctf_add_function (ctf_file_t *, uint32_t,
  313. const ctf_funcinfo_t *, const ctf_id_t *);
  314. extern ctf_id_t ctf_add_integer (ctf_file_t *, uint32_t, const char *,
  315. const ctf_encoding_t *);
  316. extern ctf_id_t ctf_add_slice (ctf_file_t *, uint32_t, ctf_id_t, const ctf_encoding_t *);
  317. extern ctf_id_t ctf_add_pointer (ctf_file_t *, uint32_t, ctf_id_t);
  318. extern ctf_id_t ctf_add_type (ctf_file_t *, ctf_file_t *, ctf_id_t);
  319. extern ctf_id_t ctf_add_typedef (ctf_file_t *, uint32_t, const char *,
  320. ctf_id_t);
  321. extern ctf_id_t ctf_add_restrict (ctf_file_t *, uint32_t, ctf_id_t);
  322. extern ctf_id_t ctf_add_struct (ctf_file_t *, uint32_t, const char *);
  323. extern ctf_id_t ctf_add_union (ctf_file_t *, uint32_t, const char *);
  324. extern ctf_id_t ctf_add_struct_sized (ctf_file_t *, uint32_t, const char *,
  325. size_t);
  326. extern ctf_id_t ctf_add_union_sized (ctf_file_t *, uint32_t, const char *,
  327. size_t);
  328. extern ctf_id_t ctf_add_volatile (ctf_file_t *, uint32_t, ctf_id_t);
  329. extern int ctf_add_enumerator (ctf_file_t *, ctf_id_t, const char *, int);
  330. extern int ctf_add_member (ctf_file_t *, ctf_id_t, const char *, ctf_id_t);
  331. extern int ctf_add_member_offset (ctf_file_t *, ctf_id_t, const char *,
  332. ctf_id_t, unsigned long);
  333. extern int ctf_add_member_encoded (ctf_file_t *, ctf_id_t, const char *,
  334. ctf_id_t, unsigned long,
  335. const ctf_encoding_t);
  336. extern int ctf_add_variable (ctf_file_t *, const char *, ctf_id_t);
  337. extern int ctf_set_array (ctf_file_t *, ctf_id_t, const ctf_arinfo_t *);
  338. extern ctf_file_t *ctf_create (int *);
  339. extern int ctf_update (ctf_file_t *);
  340. extern ctf_snapshot_id_t ctf_snapshot (ctf_file_t *);
  341. extern int ctf_rollback (ctf_file_t *, ctf_snapshot_id_t);
  342. extern int ctf_discard (ctf_file_t *);
  343. extern int ctf_write (ctf_file_t *, int);
  344. extern int ctf_gzwrite (ctf_file_t *fp, gzFile fd);
  345. extern int ctf_compress_write (ctf_file_t * fp, int fd);
  346. extern unsigned char *ctf_write_mem (ctf_file_t *, size_t *, size_t threshold);
  347. /* The ctf_link interfaces are not stable yet. No guarantees! */
  348. extern int ctf_link_add_ctf (ctf_file_t *, ctf_archive_t *, const char *);
  349. extern int ctf_link (ctf_file_t *, int share_mode);
  350. typedef const char *ctf_link_strtab_string_f (uint32_t *offset, void *arg);
  351. extern int ctf_link_add_strtab (ctf_file_t *, ctf_link_strtab_string_f *,
  352. void *);
  353. typedef ctf_link_sym_t *ctf_link_iter_symbol_f (ctf_link_sym_t *dest,
  354. void *arg);
  355. extern int ctf_link_shuffle_syms (ctf_file_t *, ctf_link_iter_symbol_f *,
  356. void *);
  357. extern unsigned char *ctf_link_write (ctf_file_t *, size_t *size,
  358. size_t threshold);
  359. /* Specialist linker functions. These functions are not used by ld, but can be
  360. used by other prgorams making use of the linker machinery for other purposes
  361. to customize its output. */
  362. extern int ctf_link_add_cu_mapping (ctf_file_t *, const char *from,
  363. const char *to);
  364. typedef char *ctf_link_memb_name_changer_f (ctf_file_t *,
  365. const char *, void *);
  366. extern void ctf_link_set_memb_name_changer
  367. (ctf_file_t *, ctf_link_memb_name_changer_f *, void *);
  368. extern void ctf_setdebug (int debug);
  369. extern int ctf_getdebug (void);
  370. #ifdef __cplusplus
  371. }
  372. #endif
  373. #endif /* _CTF_API_H */