libctf: lookups by name and symbol
[deliverable/binutils-gdb.git] / libctf / ctf-open.c
index fcc0c9d29c082c632394b5225150aed822cd29ff..5230d09a97fec5c1a40c3dd9a85b1bcf9d166366 100644 (file)
@@ -1572,6 +1572,21 @@ 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)
+{
+  return fp->ctf_archive;
+}
+
 /* Return the ctfsect out of the core ctf_impl.  Useful for freeing the
    ctfsect's data * after ctf_file_close(), which is why we return the actual
    structure, not a pointer to it, since that is likely to become a pointer to
This page took 0.023841 seconds and 4 git commands to generate.