37 lines
1.1 KiB
Ziran
37 lines
1.1 KiB
Ziran
// Native host facts for the bounded account fixture. Storage migrations and
|
|
// thread-local buffers remain the production Ziran implementations.
|
|
#import, file "../src/storage/storage_thread_buffers.zi";
|
|
#import, file "../src/storage/legacy_session_files.zi";
|
|
#import, file "../src/storage/legacy_session_time.zi";
|
|
#import, file "../src/storage/storage_sessions.zi";
|
|
#import, file "../src/storage/meta.zi";
|
|
#import, file "../src/storage/sql_query.zi";
|
|
|
|
c :: #system_library "c";
|
|
GetEnvironment :: (name: *u8) -> *u8 #foreign c "getenv";
|
|
|
|
#program_export "app_getenv_bytes"
|
|
DelegateFixtureEnvironment :: (name: *u8) -> *u8 {
|
|
if name == null {
|
|
return null
|
|
}
|
|
return GetEnvironment(name)
|
|
}
|
|
|
|
#program_export "app_web_platform"
|
|
DelegateFixtureWebPlatform :: () -> s32 {
|
|
return 0
|
|
}
|
|
|
|
// Account crypto/ownership fixtures do not embed UI assets.
|
|
#import, file "../src/app/assets.zi";
|
|
#program_export "asset_entry_at"
|
|
DelegateFixtureAsset :: (index: usize) -> *EmbeddedAssetEntry {
|
|
unused index
|
|
return null
|
|
}
|
|
#program_export "asset_entry_total"
|
|
DelegateFixtureAssetCount :: () -> usize {
|
|
return 0
|
|
}
|