libctf: types: add ctf_struct_bitfield (NEEDS REVIEW)

This new public API function allows you to find out if a struct has the
bitfield flag set or not.  (There are no other properties specific to a
struct, so we needed a new function for it.  I am open to a
ctf_struct_info() function handing back a struct if people prefer.)

New API:

int ctf_struct_bitfield (ctf_dict_t *, ctf_id_t);
This commit is contained in:
Nick Alcock
2025-04-24 17:05:10 +01:00
parent ceb15ece5e
commit 0a3ee49dd0
3 changed files with 27 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ LIBCTF_2.0 {
ctf_member_next;
ctf_array_info;
ctf_member_count;
ctf_struct_bitfield;
ctf_enum_name;
ctf_enum_value;