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.
This commit is contained in:
parent
e0325e2ced
commit
9c23dfa5aa
5 changed files with 21 additions and 0 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue