From e0325e2cede6f9da2560ede6d4a17d9e21fbea9c Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 2 Jun 2020 21:11:25 +0100 Subject: 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. --- libctf/libctf.ver | 1 + 1 file changed, 1 insertion(+) (limited to 'libctf/libctf.ver') diff --git a/libctf/libctf.ver b/libctf/libctf.ver index b8c5133..77b380c 100644 --- a/libctf/libctf.ver +++ b/libctf/libctf.ver @@ -73,6 +73,7 @@ LIBCTF_1.0 { ctf_member_info; ctf_array_info; + ctf_member_count; ctf_enum_name; ctf_enum_value; -- cgit v1.1