From 9fa3dd7b2f00fe2e988e319d3fdb83ee99e30cd0 Mon Sep 17 00:00:00 2001 From: WeiN76LQh Date: Thu, 28 Nov 2024 18:52:19 +0000 Subject: [SharedCache] Define BackingCacheType Split out from https://github.com/WeiN76LQh/binaryninja-api/tree/process-local-symbols --- view/sharedcache/api/sharedcachecore.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'view/sharedcache/api/sharedcachecore.h') diff --git a/view/sharedcache/api/sharedcachecore.h b/view/sharedcache/api/sharedcachecore.h index c2e1c7bd..54899919 100644 --- a/view/sharedcache/api/sharedcachecore.h +++ b/view/sharedcache/api/sharedcachecore.h @@ -64,6 +64,12 @@ extern "C" LoadProgressFinished, } BNDSCViewLoadProgress; + typedef enum BNBackingCacheType { + BackingCacheTypePrimary, + BackingCacheTypeSecondary, + BackingCacheTypeSymbols, + } BNBackingCacheType; + typedef struct BNBinaryView BNBinaryView; typedef struct BNSharedCache BNSharedCache; typedef struct BNStringRef BNStringRef; @@ -98,7 +104,7 @@ extern "C" typedef struct BNDSCBackingCache { char* path; - bool isPrimary; + BNBackingCacheType cacheType; BNDSCBackingCacheMapping* mappings; size_t mappingCount; } BNDSCBackingCache; -- cgit v1.3.1