diff options
Diffstat (limited to 'libctf/ctf-open.c')
-rw-r--r-- | libctf/ctf-open.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c index 8c6294a..5230d09 100644 --- a/libctf/ctf-open.c +++ b/libctf/ctf-open.c @@ -1572,6 +1572,14 @@ ctf_file_close (ctf_file_t *fp) ctf_free (fp); } +/* The converse of ctf_open(). ctf_open() disguises whatever it opens as an + archive, so closing one is just like closing an archive. */ +void +ctf_close (ctf_archive_t *arc) +{ + ctf_arc_close (arc); +} + /* Get the CTF archive from which this ctf_file_t is derived. */ ctf_archive_t * ctf_get_arc (const ctf_file_t *fp) |