808bf915a8
Now the read api lib no longer owns the memory mapped file. The rust lib aconfig_storage_read_api api to get memory mapped file just returns an Mmap rust struct. However cxx does not support Mmap data type, so we cannot export the api to get memory mapped file from rust to c++. This means we have to implement c++ apis to get memory mapped files. This change is basically implementing c++ api to get memory mapped files, mirroring the rust implementation. In addition, the integration test is also updated to lock down the new c++ api implementation. Bug: b/321077378 Test: atest aconfig_storage_read_api.test.cpp Change-Id: I5e93a220cdd05cc0e5b0eb441284ac3e9dc34da7 |
||
---|---|---|
.. | ||
aconfig | ||
aconfig_protos | ||
aconfig_storage_file | ||
aconfig_storage_read_api | ||
aconfig_storage_write_api | ||
aflags | ||
fake_device_config | ||
overrideflags | ||
printflags | ||
.gitignore | ||
Cargo.toml | ||
MODULE_LICENSE_APACHE2 | ||
OWNERS | ||
PREUPLOAD.cfg | ||
rustfmt.toml | ||
TEST_MAPPING |