aboutsummaryrefslogtreecommitdiffstats
path: root/src/ArchiveFile.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ArchiveFile.hxx (renamed from src/ArchiveInternal.hxx)19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/ArchiveInternal.hxx b/src/ArchiveFile.hxx
index f0bf2e108..52e5a4910 100644
--- a/src/ArchiveInternal.hxx
+++ b/src/ArchiveFile.hxx
@@ -17,18 +17,15 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef MPD_ARCHIVE_INTERNAL_HXX
-#define MPD_ARCHIVE_INTERNAL_HXX
+#ifndef MPD_ARCHIVE_FILE_HXX
+#define MPD_ARCHIVE_FILE_HXX
-struct archive_file {
- const struct archive_plugin *plugin;
-};
+class ArchiveFile {
+public:
+ const struct archive_plugin &plugin;
-static inline void
-archive_file_init(struct archive_file *archive_file,
- const struct archive_plugin *plugin)
-{
- archive_file->plugin = plugin;
-}
+ ArchiveFile(const struct archive_plugin &_plugin)
+ :plugin(_plugin) {}
+};
#endif