aboutsummaryrefslogtreecommitdiff
path: root/libctf/libctf.ver
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2020-06-08 09:24:01 +0100
committerNick Alcock <nick.alcock@oracle.com>2020-07-22 17:57:49 +0100
commit2399827bfa1062c7f782499e6dcd9f988318d422 (patch)
treeea65807b4e18793968c87cc905ac034239cd4cd9 /libctf/libctf.ver
parent9850ce4d7bb89d4f9216dd5eebc88156bf31b70b (diff)
downloadbinutils-2399827bfa1062c7f782499e6dcd9f988318d422.zip
binutils-2399827bfa1062c7f782499e6dcd9f988318d422.tar.gz
binutils-2399827bfa1062c7f782499e6dcd9f988318d422.tar.bz2
libctf: add ctf_ref
This allows you to bump the refcount on a ctf_file_t, so that you can smuggle it out of iterators which open and close the ctf_file_t for you around the loop body (like ctf_archive_iter). You still can't use this to preserve a ctf_file_t for longer than the lifetime of its containing entity (e.g. ctf_archive). include/ * ctf-api.h (ctf_ref): New. libctf/ * libctf.ver (ctf_ref): New. * ctf-open.c (ctf_ref): Implement it.
Diffstat (limited to 'libctf/libctf.ver')
-rw-r--r--libctf/libctf.ver1
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/libctf.ver b/libctf/libctf.ver
index 375dee8..93616d8 100644
--- a/libctf/libctf.ver
+++ b/libctf/libctf.ver
@@ -24,6 +24,7 @@ LIBCTF_1.0 {
ctf_simple_open;
ctf_create;
ctf_close;
+ ctf_ref;
ctf_file_close;
ctf_cuname;