aboutsummaryrefslogtreecommitdiff
path: root/src/engine/cache.h
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-04-16 10:20:41 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-04-19 23:12:55 -0500
commit5d6046bee5021052da4a666c1e2ceeb0f16af349 (patch)
tree589ddcbe270e2e4df8cffdbd26792bcee4c29e1c /src/engine/cache.h
parentb941c2754748251520dc5032d11396c9844fad8e (diff)
downloadwix-5d6046bee5021052da4a666c1e2ceeb0f16af349.tar.gz
wix-5d6046bee5021052da4a666c1e2ceeb0f16af349.tar.bz2
wix-5d6046bee5021052da4a666c1e2ceeb0f16af349.zip
Replace OnResolveSource with OnCacheAcquireResolving
Inactivate the engine during OnCacheAcquireBegin and Complete to allow setting the source from there. Fixes #3640 Contributes to #5253
Diffstat (limited to 'src/engine/cache.h')
-rw-r--r--src/engine/cache.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/engine/cache.h b/src/engine/cache.h
index acc7acb7..eb964f58 100644
--- a/src/engine/cache.h
+++ b/src/engine/cache.h
@@ -1,6 +1,7 @@
1#pragma once 1#pragma once
2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. 2// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
3 3
4#define BURN_CACHE_MAX_SEARCH_PATHS 7
4 5
5#ifdef __cplusplus 6#ifdef __cplusplus
6extern "C" { 7extern "C" {
@@ -52,12 +53,14 @@ HRESULT CacheGetResumePath(
52 __in_z LPCWSTR wzPayloadWorkingPath, 53 __in_z LPCWSTR wzPayloadWorkingPath,
53 __deref_out_z LPWSTR* psczResumePath 54 __deref_out_z LPWSTR* psczResumePath
54 ); 55 );
55HRESULT CacheFindLocalSource( 56HRESULT CacheGetLocalSourcePaths(
57 __in_z LPCWSTR wzRelativePath,
56 __in_z LPCWSTR wzSourcePath, 58 __in_z LPCWSTR wzSourcePath,
57 __in_z LPCWSTR wzDestinationPath, 59 __in_z LPCWSTR wzDestinationPath,
60 __in_z_opt LPCWSTR wzLayoutDirectory,
58 __in BURN_VARIABLES* pVariables, 61 __in BURN_VARIABLES* pVariables,
59 __out BOOL* pfFound, 62 __inout LPWSTR** prgSearchPaths,
60 __out_z LPWSTR* psczSourceFullPath 63 __out DWORD* pcSearchPaths
61 ); 64 );
62HRESULT CacheSetLastUsedSource( 65HRESULT CacheSetLastUsedSource(
63 __in BURN_VARIABLES* pVariables, 66 __in BURN_VARIABLES* pVariables,