Fully instantiate old FileStore and FileSystem

This commit is contained in:
Gary Talent 2018-03-12 20:12:23 -05:00
parent 2ce09ff08a
commit 9447967f12
3 changed files with 25 additions and 0 deletions

17
deps/ox/src/ox/fs/filestore.cpp vendored Normal file
View File

@ -0,0 +1,17 @@
/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "filestore.hpp"
namespace ox {
template class FileStore<FileStoreHeader<uint16_t, uint16_t>>;
template class FileStore<FileStoreHeader<uint32_t, uint16_t>>;
template class FileStore<FileStoreHeader<uint64_t, uint64_t>>;
}

View File

@ -916,6 +916,10 @@ uint8_t *FileStore<Header>::format(uint8_t *buffer, typename Header::FsSize_t si
return (uint8_t*) buffer; return (uint8_t*) buffer;
} }
extern template class FileStore<FileStoreHeader<uint16_t, uint16_t>>;
extern template class FileStore<FileStoreHeader<uint32_t, uint16_t>>;
extern template class FileStore<FileStoreHeader<uint64_t, uint64_t>>;
typedef FileStore<FileStoreHeader<uint16_t, uint16_t>> FileStore16; typedef FileStore<FileStoreHeader<uint16_t, uint16_t>> FileStore16;
typedef FileStore<FileStoreHeader<uint32_t, uint16_t>> FileStore32; typedef FileStore<FileStoreHeader<uint32_t, uint16_t>> FileStore32;
typedef FileStore<FileStoreHeader<uint64_t, uint64_t>> FileStore64; typedef FileStore<FileStoreHeader<uint64_t, uint64_t>> FileStore64;

View File

@ -620,6 +620,10 @@ void FileSystemTemplate<FileStore, FS_TYPE>::walk(int(*cb)(const char*, uint64_t
m_store->walk(cb); m_store->walk(cb);
} }
extern template class FileSystemTemplate<FileStore16, OxFS_16>;
extern template class FileSystemTemplate<FileStore32, OxFS_32>;
extern template class FileSystemTemplate<FileStore64, OxFS_64>;
typedef FileSystemTemplate<FileStore16, OxFS_16> FileSystem16; typedef FileSystemTemplate<FileStore16, OxFS_16> FileSystem16;
typedef FileSystemTemplate<FileStore32, OxFS_32> FileSystem32; typedef FileSystemTemplate<FileStore32, OxFS_32> FileSystem32;
typedef FileSystemTemplate<FileStore64, OxFS_64> FileSystem64; typedef FileSystemTemplate<FileStore64, OxFS_64> FileSystem64;