]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: types: add ctf_struct_bitfield (NEEDS REVIEW)
authorNick Alcock <nick.alcock@oracle.com>
Thu, 24 Apr 2025 16:05:10 +0000 (17:05 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 17:07:42 +0000 (18:07 +0100)
commit0a3ee49dd0b9cf89dd7987be1b6bf95e02b28545
treebb0f302c7a70fb7ded98a5b3bd62c4b0c27a9199
parentceb15ece5e8df6e8f799248627c9ca165111bde3
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);
include/ctf-api.h
libctf/ctf-types.c
libctf/libctf.ver