forked from Imagelibrary/binutils-gdb
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:
@@ -685,6 +685,9 @@ extern int ctf_type_cmp (ctf_dict_t *, ctf_id_t, ctf_dict_t *, ctf_id_t);
|
||||
|
||||
extern const char *ctf_enum_name (ctf_dict_t *, ctf_id_t, int);
|
||||
extern int ctf_enum_value (ctf_dict_t *, ctf_id_t, const char *, int *);
|
||||
/* Return nonzero if this struct or union uses bitfield encoding. */
|
||||
|
||||
extern int ctf_struct_bitfield (ctf_dict_t *, ctf_id_t);
|
||||
|
||||
/* Get the size and member type of an array. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user