Implement callback between wrapper and vfs object for hydration requests
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 29 Dec 2020 14:02:39 +0000 (15:02 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 30 Dec 2020 08:44:58 +0000 (09:44 +0100)
commit90fbb7d3225c331480f55b37ebe9064a050a5314
tree042cc1b6725e15c250692db69ba37be355b96078
parent5d013acceab8e57977f92ef021714c4ab5cad287
Implement callback between wrapper and vfs object for hydration requests

This comes with a test simulating an open request coming from another
process (although in our case it's really just a thread). The actual
hydration works as expected by cfapi, handling of encrypted files is for
now missing.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/CMakeLists.txt
src/libsync/vfs/cfapi/cfapiwrapper.cpp
src/libsync/vfs/cfapi/hydrationjob.cpp [new file with mode: 0644]
src/libsync/vfs/cfapi/hydrationjob.h [new file with mode: 0644]
src/libsync/vfs/cfapi/vfs_cfapi.cpp
src/libsync/vfs/cfapi/vfs_cfapi.h
test/testsynccfapi.cpp