diff options
author | Rob Mensching <rob@firegiant.com> | 2024-03-21 00:59:21 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2024-03-21 13:07:14 -0700 |
commit | 90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc (patch) | |
tree | 8701442f92b68fc5d7d24ebc09449419b6824cd5 /src/api/burn/balutil/inc | |
parent | a2b75ebed82be8c488f2840c359a512e865d682c (diff) | |
download | wix-90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc.tar.gz wix-90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc.tar.bz2 wix-90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc.zip |
Simplify BootstrapperApplication header files
Take this breaking change opportunity to simplify the header files used by
BA devs.
Diffstat (limited to 'src/api/burn/balutil/inc')
-rw-r--r-- | src/api/burn/balutil/inc/BootstrapperApplication.h | 21 | ||||
-rw-r--r-- | src/api/burn/balutil/inc/BootstrapperApplicationBase.h (renamed from src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h) | 8 | ||||
-rw-r--r-- | src/api/burn/balutil/inc/IBootstrapperApplication.h | 4 | ||||
-rw-r--r-- | src/api/burn/balutil/inc/IBootstrapperEngine.h | 2 | ||||
-rw-r--r-- | src/api/burn/balutil/inc/balutil.h | 9 |
5 files changed, 28 insertions, 16 deletions
diff --git a/src/api/burn/balutil/inc/BootstrapperApplication.h b/src/api/burn/balutil/inc/BootstrapperApplication.h new file mode 100644 index 00000000..d11fccf0 --- /dev/null +++ b/src/api/burn/balutil/inc/BootstrapperApplication.h | |||
@@ -0,0 +1,21 @@ | |||
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. | ||
3 | |||
4 | #include "IBootstrapperApplication.h" | ||
5 | |||
6 | #if defined(__cplusplus) | ||
7 | extern "C" { | ||
8 | #endif | ||
9 | |||
10 | /******************************************************************* | ||
11 | BootstrapperApplicationRun - runs the IBootstrapperApplication until | ||
12 | the application quits. | ||
13 | |||
14 | ********************************************************************/ | ||
15 | HRESULT __stdcall BootstrapperApplicationRun( | ||
16 | __in IBootstrapperApplication* pApplication | ||
17 | ); | ||
18 | |||
19 | #if defined(__cplusplus) | ||
20 | } | ||
21 | #endif | ||
diff --git a/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h b/src/api/burn/balutil/inc/BootstrapperApplicationBase.h index 09f1f7a2..a3a3643f 100644 --- a/src/api/burn/balutil/inc/BalBaseBootstrapperApplication.h +++ b/src/api/burn/balutil/inc/BootstrapperApplicationBase.h | |||
@@ -9,9 +9,9 @@ | |||
9 | #include "balinfo.h" | 9 | #include "balinfo.h" |
10 | #include "balretry.h" | 10 | #include "balretry.h" |
11 | 11 | ||
12 | #define CBalBaseBootstrapperApplication CBootstrapperApplication | 12 | #define CBalBaseBootstrapperApplication CBootstrapperApplicationBase |
13 | 13 | ||
14 | class CBootstrapperApplication : public IBootstrapperApplication | 14 | class CBootstrapperApplicationBase : public IBootstrapperApplication |
15 | { | 15 | { |
16 | public: // IUnknown | 16 | public: // IUnknown |
17 | virtual STDMETHODIMP QueryInterface( | 17 | virtual STDMETHODIMP QueryInterface( |
@@ -1187,7 +1187,7 @@ protected: | |||
1187 | return m_fCanceled; | 1187 | return m_fCanceled; |
1188 | } | 1188 | } |
1189 | 1189 | ||
1190 | CBalBaseBootstrapperApplication( | 1190 | CBootstrapperApplicationBase( |
1191 | __in DWORD dwRetryCount = 0, | 1191 | __in DWORD dwRetryCount = 0, |
1192 | __in DWORD dwRetryTimeout = 1000 | 1192 | __in DWORD dwRetryTimeout = 1000 |
1193 | ) | 1193 | ) |
@@ -1208,7 +1208,7 @@ protected: | |||
1208 | BalRetryInitialize(dwRetryCount, dwRetryTimeout); | 1208 | BalRetryInitialize(dwRetryCount, dwRetryTimeout); |
1209 | } | 1209 | } |
1210 | 1210 | ||
1211 | virtual ~CBalBaseBootstrapperApplication() | 1211 | virtual ~CBootstrapperApplicationBase() |
1212 | { | 1212 | { |
1213 | BalInfoUninitializeCommandLine(&m_BalInfoCommand); | 1213 | BalInfoUninitializeCommandLine(&m_BalInfoCommand); |
1214 | BalRetryUninitialize(); | 1214 | BalRetryUninitialize(); |
diff --git a/src/api/burn/balutil/inc/IBootstrapperApplication.h b/src/api/burn/balutil/inc/IBootstrapperApplication.h index 3f57f095..a08f6863 100644 --- a/src/api/burn/balutil/inc/IBootstrapperApplication.h +++ b/src/api/burn/balutil/inc/IBootstrapperApplication.h | |||
@@ -1,8 +1,8 @@ | |||
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 | #include <BootstrapperApplication.h> | 4 | #include "BootstrapperApplicationTypes.h" |
5 | #include <IBootstrapperEngine.h> | 5 | #include "IBootstrapperEngine.h" |
6 | 6 | ||
7 | DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-AB06-099D717C67FE") | 7 | DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-AB06-099D717C67FE") |
8 | { | 8 | { |
diff --git a/src/api/burn/balutil/inc/IBootstrapperEngine.h b/src/api/burn/balutil/inc/IBootstrapperEngine.h index ef3b9812..02094aa5 100644 --- a/src/api/burn/balutil/inc/IBootstrapperEngine.h +++ b/src/api/burn/balutil/inc/IBootstrapperEngine.h | |||
@@ -1,7 +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 | #include "BootstrapperEngine.h" | 4 | #include "BootstrapperEngineTypes.h" |
5 | 5 | ||
6 | DECLARE_INTERFACE_IID_(IBootstrapperEngine, IUnknown, "6480D616-27A0-44D7-905B-81512C29C2FB") | 6 | DECLARE_INTERFACE_IID_(IBootstrapperEngine, IUnknown, "6480D616-27A0-44D7-905B-81512C29C2FB") |
7 | { | 7 | { |
diff --git a/src/api/burn/balutil/inc/balutil.h b/src/api/burn/balutil/inc/balutil.h index d77b3599..32190b56 100644 --- a/src/api/burn/balutil/inc/balutil.h +++ b/src/api/burn/balutil/inc/balutil.h | |||
@@ -43,15 +43,6 @@ static const HRESULT E_PREREQBA_INFINITE_LOOP = MAKE_HRESULT(SEVERITY_ERROR, FAC | |||
43 | 43 | ||
44 | 44 | ||
45 | /******************************************************************* | 45 | /******************************************************************* |
46 | BootstrapperApplicationRun - runs the IBootstrapperApplication until | ||
47 | the application quits. | ||
48 | |||
49 | ********************************************************************/ | ||
50 | DAPI_(HRESULT) BootstrapperApplicationRun( | ||
51 | __in IBootstrapperApplication* pApplication | ||
52 | ); | ||
53 | |||
54 | /******************************************************************* | ||
55 | BalDebuggerCheck - allows bootstrapper application to explicitly check | 46 | BalDebuggerCheck - allows bootstrapper application to explicitly check |
56 | whether a debugger should be attached to the boostrapper application. | 47 | whether a debugger should be attached to the boostrapper application. |
57 | 48 | ||