aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/bextutil/inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/burn/bextutil/inc')
-rw-r--r--src/api/burn/bextutil/inc/BextBaseBootstrapperExtension.h (renamed from src/api/burn/bextutil/inc/BextBaseBundleExtension.h)34
-rw-r--r--src/api/burn/bextutil/inc/BextBaseBootstrapperExtensionProc.h46
-rw-r--r--src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h46
-rw-r--r--src/api/burn/bextutil/inc/BextBootstrapperExtensionEngine.h (renamed from src/api/burn/bextutil/inc/BextBundleExtensionEngine.h)10
-rw-r--r--src/api/burn/bextutil/inc/IBootstrapperExtension.h21
-rw-r--r--src/api/burn/bextutil/inc/IBootstrapperExtensionEngine.h (renamed from src/api/burn/bextutil/inc/IBundleExtensionEngine.h)6
-rw-r--r--src/api/burn/bextutil/inc/IBundleExtension.h21
-rw-r--r--src/api/burn/bextutil/inc/bextutil.h24
8 files changed, 104 insertions, 104 deletions
diff --git a/src/api/burn/bextutil/inc/BextBaseBundleExtension.h b/src/api/burn/bextutil/inc/BextBaseBootstrapperExtension.h
index 5bda04e1..83ba23a6 100644
--- a/src/api/burn/bextutil/inc/BextBaseBundleExtension.h
+++ b/src/api/burn/bextutil/inc/BextBaseBootstrapperExtension.h
@@ -4,7 +4,7 @@
4 4
5#include "bextutil.h" 5#include "bextutil.h"
6 6
7class CBextBaseBundleExtension : public IBundleExtension 7class CBextBaseBootstrapperExtension : public IBootstrapperExtension
8{ 8{
9public: // IUnknown 9public: // IUnknown
10 virtual STDMETHODIMP QueryInterface( 10 virtual STDMETHODIMP QueryInterface(
@@ -19,9 +19,9 @@ public: // IUnknown
19 19
20 *ppvObject = NULL; 20 *ppvObject = NULL;
21 21
22 if (::IsEqualIID(__uuidof(IBundleExtension), riid)) 22 if (::IsEqualIID(__uuidof(IBootstrapperExtension), riid))
23 { 23 {
24 *ppvObject = static_cast<IBundleExtension*>(this); 24 *ppvObject = static_cast<IBootstrapperExtension*>(this);
25 } 25 }
26 else if (::IsEqualIID(IID_IUnknown, riid)) 26 else if (::IsEqualIID(IID_IUnknown, riid))
27 { 27 {
@@ -53,7 +53,7 @@ public: // IUnknown
53 return 0; 53 return 0;
54 } 54 }
55 55
56public: // IBundleExtension 56public: // IBootstrapperExtension
57 virtual STDMETHODIMP Search( 57 virtual STDMETHODIMP Search(
58 __in LPCWSTR /*wzId*/, 58 __in LPCWSTR /*wzId*/,
59 __in LPCWSTR /*wzVariable*/ 59 __in LPCWSTR /*wzVariable*/
@@ -62,8 +62,8 @@ public: // IBundleExtension
62 return E_NOTIMPL; 62 return E_NOTIMPL;
63 } 63 }
64 64
65 virtual STDMETHODIMP BundleExtensionProc( 65 virtual STDMETHODIMP BootstrapperExtensionProc(
66 __in BUNDLE_EXTENSION_MESSAGE /*message*/, 66 __in BOOTSTRAPPER_EXTENSION_MESSAGE /*message*/,
67 __in const LPVOID /*pvArgs*/, 67 __in const LPVOID /*pvArgs*/,
68 __inout LPVOID /*pvResults*/, 68 __inout LPVOID /*pvResults*/,
69 __in_opt LPVOID /*pvContext*/ 69 __in_opt LPVOID /*pvContext*/
@@ -72,15 +72,15 @@ public: // IBundleExtension
72 return E_NOTIMPL; 72 return E_NOTIMPL;
73 } 73 }
74 74
75public: //CBextBaseBundleExtension 75public: //CBextBaseBootstrapperExtension
76 virtual STDMETHODIMP Initialize( 76 virtual STDMETHODIMP Initialize(
77 __in const BUNDLE_EXTENSION_CREATE_ARGS* pCreateArgs 77 __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pCreateArgs
78 ) 78 )
79 { 79 {
80 HRESULT hr = S_OK; 80 HRESULT hr = S_OK;
81 81
82 hr = StrAllocString(&m_sczBundleExtensionDataPath, pCreateArgs->wzBundleExtensionDataPath, 0); 82 hr = StrAllocString(&m_sczBootstrapperExtensionDataPath, pCreateArgs->wzBootstrapperExtensionDataPath, 0);
83 ExitOnFailure(hr, "Failed to copy BundleExtensionDataPath."); 83 ExitOnFailure(hr, "Failed to copy BootstrapperExtensionDataPath.");
84 84
85 LExit: 85 LExit:
86 return hr; 86 return hr;
@@ -88,8 +88,8 @@ public: //CBextBaseBundleExtension
88 88
89protected: 89protected:
90 90
91 CBextBaseBundleExtension( 91 CBextBaseBootstrapperExtension(
92 __in IBundleExtensionEngine* pEngine 92 __in IBootstrapperExtensionEngine* pEngine
93 ) 93 )
94 { 94 {
95 m_cReferences = 1; 95 m_cReferences = 1;
@@ -97,18 +97,18 @@ protected:
97 pEngine->AddRef(); 97 pEngine->AddRef();
98 m_pEngine = pEngine; 98 m_pEngine = pEngine;
99 99
100 m_sczBundleExtensionDataPath = NULL; 100 m_sczBootstrapperExtensionDataPath = NULL;
101 } 101 }
102 102
103 virtual ~CBextBaseBundleExtension() 103 virtual ~CBextBaseBootstrapperExtension()
104 { 104 {
105 ReleaseNullObject(m_pEngine); 105 ReleaseNullObject(m_pEngine);
106 ReleaseStr(m_sczBundleExtensionDataPath); 106 ReleaseStr(m_sczBootstrapperExtensionDataPath);
107 } 107 }
108 108
109protected: 109protected:
110 IBundleExtensionEngine* m_pEngine; 110 IBootstrapperExtensionEngine* m_pEngine;
111 LPWSTR m_sczBundleExtensionDataPath; 111 LPWSTR m_sczBootstrapperExtensionDataPath;
112 112
113private: 113private:
114 long m_cReferences; 114 long m_cReferences;
diff --git a/src/api/burn/bextutil/inc/BextBaseBootstrapperExtensionProc.h b/src/api/burn/bextutil/inc/BextBaseBootstrapperExtensionProc.h
new file mode 100644
index 00000000..4f96399c
--- /dev/null
+++ b/src/api/burn/bextutil/inc/BextBaseBootstrapperExtensionProc.h
@@ -0,0 +1,46 @@
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
5#include <windows.h>
6
7#include <IBootstrapperExtensionEngine.h>
8#include <IBootstrapperExtension.h>
9
10static HRESULT BextBaseBEProcSearch(
11 __in IBootstrapperExtension* pBE,
12 __in BOOTSTRAPPER_EXTENSION_SEARCH_ARGS* pArgs,
13 __inout BOOTSTRAPPER_EXTENSION_SEARCH_RESULTS* /*pResults*/
14 )
15{
16 return pBE->Search(pArgs->wzId, pArgs->wzVariable);
17}
18
19/*******************************************************************
20BextBaseBootstrapperExtensionProc - requires pvContext to be of type IBootstrapperExtension.
21 Provides a default mapping between the message based
22 BootstrapperExtension interface and the COM-based BootstrapperExtension interface.
23
24*******************************************************************/
25static HRESULT WINAPI BextBaseBootstrapperExtensionProc(
26 __in BOOTSTRAPPER_EXTENSION_MESSAGE message,
27 __in const LPVOID pvArgs,
28 __inout LPVOID pvResults,
29 __in_opt LPVOID pvContext
30 )
31{
32 IBootstrapperExtension* pBE = reinterpret_cast<IBootstrapperExtension*>(pvContext);
33 HRESULT hr = pBE->BootstrapperExtensionProc(message, pvArgs, pvResults, pvContext);
34
35 if (E_NOTIMPL == hr)
36 {
37 switch (message)
38 {
39 case BOOTSTRAPPER_EXTENSION_MESSAGE_SEARCH:
40 hr = BextBaseBEProcSearch(pBE, reinterpret_cast<BOOTSTRAPPER_EXTENSION_SEARCH_ARGS*>(pvArgs), reinterpret_cast<BOOTSTRAPPER_EXTENSION_SEARCH_RESULTS*>(pvResults));
41 break;
42 }
43 }
44
45 return hr;
46}
diff --git a/src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h b/src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h
deleted file mode 100644
index cd7e3cb3..00000000
--- a/src/api/burn/bextutil/inc/BextBaseBundleExtensionProc.h
+++ /dev/null
@@ -1,46 +0,0 @@
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
5#include <windows.h>
6
7#include <IBundleExtensionEngine.h>
8#include <IBundleExtension.h>
9
10static HRESULT BextBaseBEProcSearch(
11 __in IBundleExtension* pBE,
12 __in BUNDLE_EXTENSION_SEARCH_ARGS* pArgs,
13 __inout BUNDLE_EXTENSION_SEARCH_RESULTS* /*pResults*/
14 )
15{
16 return pBE->Search(pArgs->wzId, pArgs->wzVariable);
17}
18
19/*******************************************************************
20BextBaseBundleExtensionProc - requires pvContext to be of type IBundleExtension.
21 Provides a default mapping between the message based
22 BundleExtension interface and the COM-based BundleExtension interface.
23
24*******************************************************************/
25static HRESULT WINAPI BextBaseBundleExtensionProc(
26 __in BUNDLE_EXTENSION_MESSAGE message,
27 __in const LPVOID pvArgs,
28 __inout LPVOID pvResults,
29 __in_opt LPVOID pvContext
30 )
31{
32 IBundleExtension* pBE = reinterpret_cast<IBundleExtension*>(pvContext);
33 HRESULT hr = pBE->BundleExtensionProc(message, pvArgs, pvResults, pvContext);
34
35 if (E_NOTIMPL == hr)
36 {
37 switch (message)
38 {
39 case BUNDLE_EXTENSION_MESSAGE_SEARCH:
40 hr = BextBaseBEProcSearch(pBE, reinterpret_cast<BUNDLE_EXTENSION_SEARCH_ARGS*>(pvArgs), reinterpret_cast<BUNDLE_EXTENSION_SEARCH_RESULTS*>(pvResults));
41 break;
42 }
43 }
44
45 return hr;
46}
diff --git a/src/api/burn/bextutil/inc/BextBundleExtensionEngine.h b/src/api/burn/bextutil/inc/BextBootstrapperExtensionEngine.h
index 97b02f36..a27ff186 100644
--- a/src/api/burn/bextutil/inc/BextBundleExtensionEngine.h
+++ b/src/api/burn/bextutil/inc/BextBootstrapperExtensionEngine.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 <IBundleExtensionEngine.h> 4#include <IBootstrapperExtensionEngine.h>
5 5
6#ifdef __cplusplus 6#ifdef __cplusplus
7extern "C" { 7extern "C" {
@@ -9,10 +9,10 @@ extern "C" {
9 9
10// function declarations 10// function declarations
11 11
12HRESULT BextBundleExtensionEngineCreate( 12HRESULT BextBootstrapperExtensionEngineCreate(
13 __in PFN_BUNDLE_EXTENSION_ENGINE_PROC pfnBundleExtensionEngineProc, 13 __in PFN_BOOTSTRAPPER_EXTENSION_ENGINE_PROC pfnBootstrapperExtensionEngineProc,
14 __in_opt LPVOID pvBundleExtensionEngineProcContext, 14 __in_opt LPVOID pvBootstrapperExtensionEngineProcContext,
15 __out IBundleExtensionEngine** ppEngineForExtension 15 __out IBootstrapperExtensionEngine** ppEngineForExtension
16 ); 16 );
17 17
18#ifdef __cplusplus 18#ifdef __cplusplus
diff --git a/src/api/burn/bextutil/inc/IBootstrapperExtension.h b/src/api/burn/bextutil/inc/IBootstrapperExtension.h
new file mode 100644
index 00000000..4005a9fd
--- /dev/null
+++ b/src/api/burn/bextutil/inc/IBootstrapperExtension.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 <BootstrapperExtension.h>
5
6DECLARE_INTERFACE_IID_(IBootstrapperExtension, IUnknown, "93123C9D-796B-4FCD-A507-6EDEF9A925FD")
7{
8 STDMETHOD(Search)(
9 __in LPCWSTR wzId,
10 __in LPCWSTR wzVariable
11 ) = 0;
12
13 // BootstrapperExtensionProc - The PFN_BOOTSTRAPPER_EXTENSION_PROC can call this method to give the BootstrapperExtension raw access to the callback from the engine.
14 // This might be used to help the BootstrapperExtension support more than one version of the engine.
15 STDMETHOD(BootstrapperExtensionProc)(
16 __in BOOTSTRAPPER_EXTENSION_MESSAGE message,
17 __in const LPVOID pvArgs,
18 __inout LPVOID pvResults,
19 __in_opt LPVOID pvContext
20 ) = 0;
21};
diff --git a/src/api/burn/bextutil/inc/IBundleExtensionEngine.h b/src/api/burn/bextutil/inc/IBootstrapperExtensionEngine.h
index a4a27fb1..b23a57b7 100644
--- a/src/api/burn/bextutil/inc/IBundleExtensionEngine.h
+++ b/src/api/burn/bextutil/inc/IBootstrapperExtensionEngine.h
@@ -1,9 +1,9 @@
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 <BundleExtensionEngine.h> 4#include <BootstrapperExtensionEngine.h>
5 5
6DECLARE_INTERFACE_IID_(IBundleExtensionEngine, IUnknown, "9D027A39-F6B6-42CC-9737-C185089EB263") 6DECLARE_INTERFACE_IID_(IBootstrapperExtensionEngine, IUnknown, "9D027A39-F6B6-42CC-9737-C185089EB263")
7{ 7{
8 STDMETHOD(EscapeString)( 8 STDMETHOD(EscapeString)(
9 __in_z LPCWSTR wzIn, 9 __in_z LPCWSTR wzIn,
@@ -40,7 +40,7 @@ DECLARE_INTERFACE_IID_(IBundleExtensionEngine, IUnknown, "9D027A39-F6B6-42CC-973
40 ) = 0; 40 ) = 0;
41 41
42 STDMETHOD(Log)( 42 STDMETHOD(Log)(
43 __in BUNDLE_EXTENSION_LOG_LEVEL level, 43 __in BOOTSTRAPPER_EXTENSION_LOG_LEVEL level,
44 __in_z LPCWSTR wzMessage 44 __in_z LPCWSTR wzMessage
45 ) = 0; 45 ) = 0;
46 46
diff --git a/src/api/burn/bextutil/inc/IBundleExtension.h b/src/api/burn/bextutil/inc/IBundleExtension.h
deleted file mode 100644
index 00301672..00000000
--- a/src/api/burn/bextutil/inc/IBundleExtension.h
+++ /dev/null
@@ -1,21 +0,0 @@
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 <BundleExtension.h>
5
6DECLARE_INTERFACE_IID_(IBundleExtension, IUnknown, "93123C9D-796B-4FCD-A507-6EDEF9A925FD")
7{
8 STDMETHOD(Search)(
9 __in LPCWSTR wzId,
10 __in LPCWSTR wzVariable
11 ) = 0;
12
13 // BundleExtensionProc - The PFN_BUNDLE_EXTENSION_PROC can call this method to give the BundleExtension raw access to the callback from the engine.
14 // This might be used to help the BundleExtension support more than one version of the engine.
15 STDMETHOD(BundleExtensionProc)(
16 __in BUNDLE_EXTENSION_MESSAGE message,
17 __in const LPVOID pvArgs,
18 __inout LPVOID pvResults,
19 __in_opt LPVOID pvContext
20 ) = 0;
21};
diff --git a/src/api/burn/bextutil/inc/bextutil.h b/src/api/burn/bextutil/inc/bextutil.h
index b8536444..64633cf1 100644
--- a/src/api/burn/bextutil/inc/bextutil.h
+++ b/src/api/burn/bextutil/inc/bextutil.h
@@ -4,8 +4,8 @@
4 4
5#include "dutil.h" 5#include "dutil.h"
6 6
7#include "IBundleExtensionEngine.h" 7#include "IBootstrapperExtensionEngine.h"
8#include "IBundleExtension.h" 8#include "IBootstrapperExtension.h"
9 9
10#ifdef __cplusplus 10#ifdef __cplusplus
11extern "C" { 11extern "C" {
@@ -33,7 +33,7 @@ extern "C" {
33#define BextExitOnOptionalXmlQueryFailure(x, b, f, ...) BextExitOnOptionalXmlQueryFailureSource(DUTIL_SOURCE_DEFAULT, x, b, f, __VA_ARGS__) 33#define BextExitOnOptionalXmlQueryFailure(x, b, f, ...) BextExitOnOptionalXmlQueryFailureSource(DUTIL_SOURCE_DEFAULT, x, b, f, __VA_ARGS__)
34#define BextExitOnRequiredXmlQueryFailure(x, f, ...) BextExitOnRequiredXmlQueryFailureSource(DUTIL_SOURCE_DEFAULT, x, f, __VA_ARGS__) 34#define BextExitOnRequiredXmlQueryFailure(x, f, ...) BextExitOnRequiredXmlQueryFailureSource(DUTIL_SOURCE_DEFAULT, x, f, __VA_ARGS__)
35 35
36const LPCWSTR BUNDLE_EXTENSION_MANIFEST_FILENAME = L"BundleExtensionData.xml"; 36const LPCWSTR BOOTSTRAPPER_EXTENSION_MANIFEST_FILENAME = L"BootstrapperExtensionData.xml";
37 37
38 38
39/******************************************************************* 39/*******************************************************************
@@ -42,17 +42,17 @@ const LPCWSTR BUNDLE_EXTENSION_MANIFEST_FILENAME = L"BundleExtensionData.xml";
42 42
43********************************************************************/ 43********************************************************************/
44DAPI_(void) BextInitialize( 44DAPI_(void) BextInitialize(
45 __in IBundleExtensionEngine* pEngine 45 __in IBootstrapperExtensionEngine* pEngine
46 ); 46 );
47 47
48/******************************************************************* 48/*******************************************************************
49 BextInitializeFromCreateArgs - convenience function to call BextBundleExtensionEngineCreate 49 BextInitializeFromCreateArgs - convenience function to call BextBootstrapperExtensionEngineCreate
50 then pass it along to BextInitialize. 50 then pass it along to BextInitialize.
51 51
52********************************************************************/ 52********************************************************************/
53DAPI_(HRESULT) BextInitializeFromCreateArgs( 53DAPI_(HRESULT) BextInitializeFromCreateArgs(
54 __in const BUNDLE_EXTENSION_CREATE_ARGS* pArgs, 54 __in const BOOTSTRAPPER_EXTENSION_CREATE_ARGS* pArgs,
55 __out IBundleExtensionEngine** ppEngine 55 __out IBootstrapperExtensionEngine** ppEngine
56 ); 56 );
57 57
58/******************************************************************* 58/*******************************************************************
@@ -62,13 +62,13 @@ DAPI_(HRESULT) BextInitializeFromCreateArgs(
62DAPI_(void) BextUninitialize(); 62DAPI_(void) BextUninitialize();
63 63
64/******************************************************************* 64/*******************************************************************
65 BextGetBundleExtensionDataNode - gets the requested BundleExtension node. 65 BextGetBootstrapperExtensionDataNode - gets the requested BootstrapperExtension node.
66 66
67********************************************************************/ 67********************************************************************/
68DAPI_(HRESULT) BextGetBundleExtensionDataNode( 68DAPI_(HRESULT) BextGetBootstrapperExtensionDataNode(
69 __in IXMLDOMDocument* pixdManifest, 69 __in IXMLDOMDocument* pixdManifest,
70 __in LPCWSTR wzExtensionId, 70 __in LPCWSTR wzExtensionId,
71 __out IXMLDOMNode** ppixnBundleExtension 71 __out IXMLDOMNode** ppixnBootstrapperExtension
72 ); 72 );
73 73
74/******************************************************************* 74/*******************************************************************
@@ -76,7 +76,7 @@ DAPI_(HRESULT) BextGetBundleExtensionDataNode(
76 76
77********************************************************************/ 77********************************************************************/
78DAPIV_(HRESULT) BextLog( 78DAPIV_(HRESULT) BextLog(
79 __in BUNDLE_EXTENSION_LOG_LEVEL level, 79 __in BOOTSTRAPPER_EXTENSION_LOG_LEVEL level,
80 __in_z __format_string LPCSTR szFormat, 80 __in_z __format_string LPCSTR szFormat,
81 ... 81 ...
82 ); 82 );
@@ -86,7 +86,7 @@ DAPIV_(HRESULT) BextLog(
86 86
87********************************************************************/ 87********************************************************************/
88DAPI_(HRESULT) BextLogArgs( 88DAPI_(HRESULT) BextLogArgs(
89 __in BUNDLE_EXTENSION_LOG_LEVEL level, 89 __in BOOTSTRAPPER_EXTENSION_LOG_LEVEL level,
90 __in_z __format_string LPCSTR szFormat, 90 __in_z __format_string LPCSTR szFormat,
91 __in va_list args 91 __in va_list args
92 ); 92 );