static int close_cb(struct archive *arch, void *priv) { struct mp_archive_volume *vol = priv; volume_close(vol); talloc_free(vol); return ARCHIVE_OK; }
/* ( -- ) */ static void hfsp_files_close( hfsp_info_t *mi ) { volume_close(mi->vol); if( mi->hfspfile->path ) free( mi->hfspfile->path ); free( mi->hfspfile ); }
static int switch_cb(struct archive *arch, void *oldpriv, void *newpriv) { struct mp_archive_volume *oldvol = oldpriv; volume_close(oldvol); return open_cb(arch, newpriv); }