libctf: add ctf_member_count
authorNick Alcock <nick.alcock@oracle.com>
Tue, 2 Jun 2020 20:11:25 +0000 (21:11 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:38 +0000 (17:57 +0100)
commite0325e2cede6f9da2560ede6d4a17d9e21fbea9c
tree387753f6792402171ec8f95b157859bb94c734ee
parent9b15cbb7891f6b8b185fed41e5e6ecea0a6a6c36
libctf: add ctf_member_count

This returns the number of members in a struct or union, or the number
of enumerations in an enum.  (This was only available before now by
iterating across every member, but it can be returned much faster than
that.)

include/
* ctf-api.h (ctf_member_count): New.

libctf/
* ctf-types.c (ctf_member_count): New.
* libctf.ver: New public function.
include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/ctf-types.c
libctf/libctf.ver