aboutsummaryrefslogtreecommitdiff
path: root/include
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
parente0325e2cede6f9da2560ede6d4a17d9e21fbea9c (diff)
downloadgdb-9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5.zip
gdb-9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5.tar.gz
gdb-9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5.tar.bz2
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')
-rw-r--r--include/ChangeLog4
-rw-r--r--include/ctf-api.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 27ffb90..dd9d5e0 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,5 +1,9 @@
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+ * ctf-api.h (ctf_archive_count): New.
+
+2020-07-22 Nick Alcock <nick.alcock@oracle.com>
+
* ctf-api.h (ctf_member_count): New.
2020-07-22 Nick Alcock <nick.alcock@oracle.com>
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. */