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:
Nick Alcock
2020-06-02 21:14:22 +01:00
parent e0325e2ced
commit 9c23dfa5aa
5 changed files with 21 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ LIBCTF_1.0 {
ctf_arc_close;
ctf_arc_open_by_name;
ctf_arc_open_by_name_sections;
ctf_archive_count;
ctf_archive_iter;
ctf_archive_raw_iter;
ctf_get_arc;