From a58e2ad3aa47a59fab6b941327952a75f84bfba9 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Fri, 4 Nov 2011 22:53:53 +0000 Subject: ctf: Allow access to the CTF parent label --- usr/src/common/ctf/ctf_open.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'usr/src/common/ctf/ctf_open.c') 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 @@ -888,6 +888,16 @@ ctf_parent_name(ctf_file_t *fp) return (fp->ctf_parname); } +/* + * 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 -- cgit v1.2.3