diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2024-06-11 20:55:35 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2024-06-18 13:20:32 +0100 |
commit | 1f62f2a9b561cd828feb719489be5dd5b9721777 (patch) | |
tree | 6f928eba8e3cd52895d7b2ebb5a7d2b4410c4f94 /include | |
parent | 4bbc4b1f5cf650ace8b2aa683ccb24a34131ad3b (diff) | |
download | binutils-1f62f2a9b561cd828feb719489be5dd5b9721777.zip binutils-1f62f2a9b561cd828feb719489be5dd5b9721777.tar.gz binutils-1f62f2a9b561cd828feb719489be5dd5b9721777.tar.bz2 |
include: libctf: comment improvements
Describe a bit more clearly what effects a type being non-root-
visible has. More consistently use the term non-root-visible
rather than hidden. Document ctf_enum_iter.
include/
* ctf-api.h (ctf_enum_iter): Document.
(ctf_type_iter): Hidden, not non-root. Mention that
parent dictionaries are not traversed.
Diffstat (limited to 'include')
-rw-r--r-- | include/ctf-api.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ctf-api.h b/include/ctf-api.h index d7bdbdd..d67db8b 100644 --- a/include/ctf-api.h +++ b/include/ctf-api.h @@ -663,6 +663,8 @@ extern int ctf_member_iter (ctf_dict_t *, ctf_id_t, ctf_member_f *, void *); extern ssize_t ctf_member_next (ctf_dict_t *, ctf_id_t, ctf_next_t **, const char **name, ctf_id_t *membtype, int flags); + +/* Return all enumeration constants in a given enum type. */ extern int ctf_enum_iter (ctf_dict_t *, ctf_id_t, ctf_enum_f *, void *); extern const char *ctf_enum_next (ctf_dict_t *, ctf_id_t, ctf_next_t **, int *); @@ -672,8 +674,9 @@ extern const char *ctf_enum_next (ctf_dict_t *, ctf_id_t, ctf_next_t **, CTF_ADD_ROOT was passed). All such types are returned, even if they are things like pointers that intrinsically have no name: this is the only effect of CTF_ADD_ROOT for such types. ctf_type_next allows you to choose whether - to see hidden types or not with the want_hidden arg: if set, the flag (if - passed) returns the hidden state of each type in turn. */ + to see non-root types or not with the want_hidden arg: if set, the flag (if + passed) returns the non-root state of each type in turn. Types in parent + dictionaries are not returned. */ extern int ctf_type_iter (ctf_dict_t *, ctf_type_f *, void *); extern int ctf_type_iter_all (ctf_dict_t *, ctf_type_all_f *, void *); |