Fully instantiate old FileStore and FileSystem
This commit is contained in:
parent
2ce09ff08a
commit
9447967f12
17
deps/ox/src/ox/fs/filestore.cpp
vendored
Normal file
17
deps/ox/src/ox/fs/filestore.cpp
vendored
Normal 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>>;
|
||||
|
||||
}
|
4
deps/ox/src/ox/fs/filestore.hpp
vendored
4
deps/ox/src/ox/fs/filestore.hpp
vendored
@ -916,6 +916,10 @@ uint8_t *FileStore<Header>::format(uint8_t *buffer, typename Header::FsSize_t si
|
||||
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<uint32_t, uint16_t>> FileStore32;
|
||||
typedef FileStore<FileStoreHeader<uint64_t, uint64_t>> FileStore64;
|
||||
|
@ -620,6 +620,10 @@ void FileSystemTemplate<FileStore, FS_TYPE>::walk(int(*cb)(const char*, uint64_t
|
||||
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<FileStore32, OxFS_32> FileSystem32;
|
||||
typedef FileSystemTemplate<FileStore64, OxFS_64> FileSystem64;
|
||||
|
Loading…
Reference in New Issue
Block a user