summaryrefslogtreecommitdiff
path: root/include/ctf-api.h
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2020-06-02 21:14:22 +0100
committerNick Alcock <nick.alcock@oracle.com>2020-07-22 17:57:39 +0100
commit9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5 (patch)
treef6cdbe6d88b5300cf4026d5ea667fb8af9f44e2a /include/ctf-api.h
parente0325e2cede6f9da2560ede6d4a17d9e21fbea9c (diff)
libctf: add ctf_archive_count
Another count that was otherwise unavailable without doing expensive operations. include/ * ctf-api.h (ctf_archive_count): New. libctf/ * ctf-archive.c (ctf_archive_count): New. * libctf.ver: New public function.
Diffstat (limited to 'include/ctf-api.h')
-rw-r--r--include/ctf-api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ctf-api.h b/include/ctf-api.h
index 7cdf4a5623..fb797a3346 100644
--- a/include/ctf-api.h
+++ b/include/ctf-api.h
@@ -276,6 +276,7 @@ extern ctf_file_t *ctf_arc_open_by_name_sections (const ctf_archive_t *,
const ctf_sect_t *,
const ctf_sect_t *,
const char *, int *);
+extern size_t ctf_archive_count (const ctf_archive_t *);
/* The next functions return or close real CTF files, or write out CTF archives,
not opaque containers around either. */