summaryrefslogtreecommitdiff
path: root/src/api/burn/balutil
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2024-03-21 00:59:21 -0700
committerRob Mensching <rob@firegiant.com>2024-03-21 13:07:14 -0700
commit90cdebbe94c7f60db86965ffb97d9ba51d0bc9fc (patch)
tree8701442f92b68fc5d7d24ebc09449419b6824cd5 /src/api/burn/balutil
parenta2b75ebed82be8c488f2840c359a512e865d682c (diff)
downloadwix-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')
-rw-r--r--src/api/burn/balutil/balutil.cpp2
-rw-r--r--src/api/burn/balutil/balutil.vcxproj2
-rw-r--r--src/api/burn/balutil/inc/BootstrapperApplication.h21
-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.h4
-rw-r--r--src/api/burn/balutil/inc/IBootstrapperEngine.h2
-rw-r--r--src/api/burn/balutil/inc/balutil.h9
-rw-r--r--src/api/burn/balutil/precomp.h2
8 files changed, 31 insertions, 19 deletions
diff --git a/src/api/burn/balutil/balutil.cpp b/src/api/burn/balutil/balutil.cpp
index 7f774b6c..5d8bfa9c 100644
--- a/src/api/burn/balutil/balutil.cpp
+++ b/src/api/burn/balutil/balutil.cpp
@@ -38,7 +38,7 @@ static void MsgProc(
38 38
39// prototypes 39// prototypes
40 40
41DAPI_(HRESULT) BootstrapperApplicationRun( 41EXTERN_C HRESULT __stdcall BootstrapperApplicationRun(
42 __in IBootstrapperApplication* pApplication 42 __in IBootstrapperApplication* pApplication
43 ) 43 )
44{ 44{
diff --git a/src/api/burn/balutil/balutil.vcxproj b/src/api/burn/balutil/balutil.vcxproj
index 7d539b5b..2b0fd23f 100644
--- a/src/api/burn/balutil/balutil.vcxproj
+++ b/src/api/burn/balutil/balutil.vcxproj
@@ -63,7 +63,7 @@
63 <ClCompile Include="msg.cpp" /> 63 <ClCompile Include="msg.cpp" />
64 </ItemGroup> 64 </ItemGroup>
65 <ItemGroup> 65 <ItemGroup>
66 <ClInclude Include="inc\BalBaseBootstrapperApplication.h" /> 66 <ClInclude Include="inc\BootstrapperApplicationBase.h" />
67 <ClInclude Include="inc\balcondition.h" /> 67 <ClInclude Include="inc\balcondition.h" />
68 <ClInclude Include="inc\balinfo.h" /> 68 <ClInclude Include="inc\balinfo.h" />
69 <ClInclude Include="inc\balretry.h" /> 69 <ClInclude Include="inc\balretry.h" />
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)
7extern "C" {
8#endif
9
10/*******************************************************************
11 BootstrapperApplicationRun - runs the IBootstrapperApplication until
12 the application quits.
13
14********************************************************************/
15HRESULT __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
14class CBootstrapperApplication : public IBootstrapperApplication 14class CBootstrapperApplicationBase : public IBootstrapperApplication
15{ 15{
16public: // IUnknown 16public: // 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
7DECLARE_INTERFACE_IID_(IBootstrapperApplication, IUnknown, "53C31D56-49C0-426B-AB06-099D717C67FE") 7DECLARE_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
6DECLARE_INTERFACE_IID_(IBootstrapperEngine, IUnknown, "6480D616-27A0-44D7-905B-81512C29C2FB") 6DECLARE_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********************************************************************/
50DAPI_(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
diff --git a/src/api/burn/balutil/precomp.h b/src/api/burn/balutil/precomp.h
index 753bc21f..3123143e 100644
--- a/src/api/burn/balutil/precomp.h
+++ b/src/api/burn/balutil/precomp.h
@@ -30,7 +30,7 @@
30#include <thmutil.h> 30#include <thmutil.h>
31#include <xmlutil.h> 31#include <xmlutil.h>
32 32
33#include "IBootstrapperApplication.h" 33#include "BootstrapperApplication.h"
34 34
35#include "balutil.h" 35#include "balutil.h"
36#include "BalBootstrapperEngine.h" 36#include "BalBootstrapperEngine.h"