diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2020-06-02 21:14:22 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2020-07-22 17:57:39 +0100 |
commit | 9c23dfa5aa48c3ec94f643ce25a2b900ad0549c5 (patch) | |
tree | f6cdbe6d88b5300cf4026d5ea667fb8af9f44e2a /include/ctf-api.h | |
parent | e0325e2cede6f9da2560ede6d4a17d9e21fbea9c (diff) | |
download | gdb-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/ctf-api.h')
-rw-r--r-- | include/ctf-api.h | 1 |
1 files changed, 1 insertions, 0 deletions
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. */ |