libctf: library version enforcement
This old Solaris standard allows callers to specify that they are expecting one particular API and/or CTF file format from the library. libctf/ * ctf-impl.h (_libctf_version): New declaration. * ctf-subr.c (_libctf_version): Define it. (ctf_version): New. include/ * ctf-api.h (ctf_version): New.
This commit is contained in:
parent
c499eb6896
commit
6c33b742ce
5 changed files with 39 additions and 0 deletions
|
@ -375,6 +375,7 @@ extern const char *ctf_lookup_symbol_name (ctf_file_t *fp, unsigned long symidx)
|
|||
extern const char _CTF_SECTION[]; /* name of CTF ELF section */
|
||||
extern const char _CTF_NULLSTR[]; /* empty string */
|
||||
|
||||
extern int _libctf_version; /* library client version */
|
||||
extern int _libctf_debug; /* debugging messages enabled */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue