summaryrefslogtreecommitdiff
path: root/usr/src/common/ctf/ctf_open.c
diff options
context:
space:
mode:
authorJohn Sonnenschein <johns@joyent.com>2011-11-07 20:37:31 +0000
committerJohn Sonnenschein <johns@joyent.com>2011-11-07 20:37:31 +0000
commitcf1f80d4478d278b94ad9c99026c1b589864f7da (patch)
tree2228af69297cdf876c26f878dddd777dfb8121f6 /usr/src/common/ctf/ctf_open.c
parent6ced7649bde61eed0cc146e97321316c95d2d6ff (diff)
parentb33a20ad3fa739811b783323c36cbfcc415811d0 (diff)
downloadillumos-joyent-cf1f80d4478d278b94ad9c99026c1b589864f7da.tar.gz
Merge branch 'ctf/check-parent-label' of https://github.com/richlowe/illumos-gate into gcc4
Diffstat (limited to 'usr/src/common/ctf/ctf_open.c')
-rw-r--r--usr/src/common/ctf/ctf_open.c10
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.