aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive_plugin.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-31 10:02:55 +0100
committerMax Kellermann <max@duempel.org>2009-12-31 18:27:35 +0100
commitaad05fd1386442330ecc0a15b86cf8081ea47c83 (patch)
tree66e9063f50b1c78cb8dda928e511f84f02f95891 /src/archive_plugin.h
parent032c5376ad0ad8dca135d210363ef8e454e11167 (diff)
downloadmpd-aad05fd1386442330ecc0a15b86cf8081ea47c83.tar.gz
mpd-aad05fd1386442330ecc0a15b86cf8081ea47c83.tar.xz
mpd-aad05fd1386442330ecc0a15b86cf8081ea47c83.zip
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.
Diffstat (limited to 'src/archive_plugin.h')
-rw-r--r--src/archive_plugin.h3
1 files changed, 0 insertions, 3 deletions
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