diff options
author | Richard Lowe <richlowe@richlowe.net> | 2011-11-04 22:53:53 +0000 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2011-11-04 22:55:37 -0400 |
commit | a58e2ad3aa47a59fab6b941327952a75f84bfba9 (patch) | |
tree | 31c44aa2e9dcf5b38414431fd6eb512418077a83 /usr/src/common/ctf/ctf_open.c | |
parent | 3313edffb432789e53c95ca0d0ffd47604ed7296 (diff) | |
download | illumos-joyent-a58e2ad3aa47a59fab6b941327952a75f84bfba9.tar.gz |
ctf: Allow access to the CTF parent label
Diffstat (limited to 'usr/src/common/ctf/ctf_open.c')
-rw-r--r-- | usr/src/common/ctf/ctf_open.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/common/ctf/ctf_open.c b/usr/src/common/ctf/ctf_open.c index e49a4cb329..e494ac3156 100644 --- a/usr/src/common/ctf/ctf_open.c +++ b/usr/src/common/ctf/ctf_open.c @@ -889,6 +889,16 @@ ctf_parent_name(ctf_file_t *fp) } /* + * Return the label of the parent CTF container, if one exists. Otherwise + * return NULL. + */ +const char * +ctf_parent_label(ctf_file_t *fp) +{ + return (fp->ctf_parlabel); +} + +/* * Import the types from the specified parent container by storing a pointer * to it in ctf_parent and incrementing its reference count. Only one parent * is allowed: if a parent already exists, it is replaced by the new parent. |