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.
This commit is contained in:
parent
9b15cbb789
commit
e0325e2ced
5 changed files with 35 additions and 0 deletions
|
@ -73,6 +73,7 @@ LIBCTF_1.0 {
|
|||
|
||||
ctf_member_info;
|
||||
ctf_array_info;
|
||||
ctf_member_count;
|
||||
|
||||
ctf_enum_name;
|
||||
ctf_enum_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue