From aad05fd1386442330ecc0a15b86cf8081ea47c83 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 31 Dec 2009 10:02:55 +0100 Subject: archive: use reference counting for archive+input Make the input_stream implementation hold a reference on the archive_file object. Allow the caller to "close" the archive_file object immediately, no matter if the open_stream() method has succeeded or not. --- src/archive_plugin.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/archive_plugin.h') diff --git a/src/archive_plugin.h b/src/archive_plugin.h index 52629f2e1..b15320503 100644 --- a/src/archive_plugin.h +++ b/src/archive_plugin.h @@ -67,9 +67,6 @@ struct archive_plugin { /** * Opens an input_stream of a file within the archive. * - * If this function succeeds, then the #input_stream "owns" - * the archive file and will automatically close it. - * * @param path the path within the archive * @param error_r location to store the error occuring, or * NULL to ignore errors -- cgit v1.2.3