diff options
author | 2019-04-24 11:26:42 +0100 | |
---|---|---|
committer | 2019-05-28 17:08:29 +0100 | |
commit | 6c33b742ce19cc2fd226d84f2991572239199a62 (patch) | |
tree | b6ef5f9c4b2aa6d1c4a716a4e279c9d6a7222c1d /include | |
parent | libctf: type copying (diff) | |
download | binutils-gdb-6c33b742ce19cc2fd226d84f2991572239199a62.tar.gz binutils-gdb-6c33b742ce19cc2fd226d84f2991572239199a62.tar.bz2 binutils-gdb-6c33b742ce19cc2fd226d84f2991572239199a62.zip |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 4 | ||||
-rw-r--r-- | include/ctf-api.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 4be07a55319..56922add8a8 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,5 +1,9 @@ 2019-05-28 Nick Alcock <nick.alcock@oracle.com> + * ctf-api.h (ctf_version): New. + +2019-05-28 Nick Alcock <nick.alcock@oracle.com> + * ctf-api.h (ctf_func_info): New. (ctf_func_args): Likewise. (ctf_lookup_by_symbol): Likewise. diff --git a/include/ctf-api.h b/include/ctf-api.h index 045d8af1905..6ab754a1840 100644 --- a/include/ctf-api.h +++ b/include/ctf-api.h @@ -269,6 +269,7 @@ extern void *ctf_getspecific (ctf_file_t *); extern int ctf_errno (ctf_file_t *); extern const char *ctf_errmsg (int); +extern int ctf_version (int); extern int ctf_func_info (ctf_file_t *, unsigned long, ctf_funcinfo_t *); extern int ctf_func_args (ctf_file_t *, unsigned long, uint32_t, ctf_id_t *); |