From 6c33b742ce19cc2fd226d84f2991572239199a62 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Wed, 24 Apr 2019 11:26:42 +0100 Subject: 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. --- include/ChangeLog | 4 ++++ include/ctf-api.h | 1 + 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 4be07a5..56922ad 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,5 +1,9 @@ 2019-05-28 Nick Alcock + * ctf-api.h (ctf_version): New. + +2019-05-28 Nick Alcock + * 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 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 *); -- cgit v1.1