From 9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 2 Jun 2020 21:14:22 +0100 Subject: 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. --- include/ctf-api.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ctf-api.h') diff --git a/include/ctf-api.h b/include/ctf-api.h index 7cdf4a5..fb797a3 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. */ -- cgit v1.1