diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-04-24 11:26:42 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-05-28 17:08:29 +0100 |
commit | 6c33b742ce19cc2fd226d84f2991572239199a62 (patch) | |
tree | b6ef5f9c4b2aa6d1c4a716a4e279c9d6a7222c1d /include/ctf-api.h | |
parent | c499eb6896cd803d26da8c719bfac9c03e596c08 (diff) | |
download | gdb-6c33b742ce19cc2fd226d84f2991572239199a62.zip gdb-6c33b742ce19cc2fd226d84f2991572239199a62.tar.gz gdb-6c33b742ce19cc2fd226d84f2991572239199a62.tar.bz2 |
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/ctf-api.h')
-rw-r--r-- | include/ctf-api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ctf-api.h b/include/ctf-api.h index 045d8af..6ab754a 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 *); |