From cc5fe7c79aad14819df1b4cb134884b80a945141 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 1 Feb 2021 20:36:39 -0600 Subject: Move registry checks for dependency ref-counting into Detect. --- src/engine/dependency.h | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'src/engine/dependency.h') diff --git a/src/engine/dependency.h b/src/engine/dependency.h index 905857e0..5390bede 100644 --- a/src/engine/dependency.h +++ b/src/engine/dependency.h @@ -14,11 +14,11 @@ const LPCWSTR DEPENDENCY_IGNOREDEPENDENCIES = L"IGNOREDEPENDENCIES"; // function declarations /******************************************************************** - DependencyUninitialize - Frees and zeros memory allocated in the - dependency. + DependencyUninitializeProvider - Frees and zeros memory allocated in + the dependency provider. *********************************************************************/ -void DependencyUninitialize( +void DependencyUninitializeProvider( __in BURN_DEPENDENCY_PROVIDER* pProvider ); @@ -32,16 +32,9 @@ HRESULT DependencyParseProvidersFromXml( __in IXMLDOMNode* pixnPackage ); -/******************************************************************** - DependencyDetectProviderKeyPackageId - Detect if the provider key is - registered and if so what package code is registered. - - Note: Returns E_NOTFOUND if the provider key is not registered. -*********************************************************************/ -HRESULT DependencyDetectProviderKeyPackageId( - __in const BURN_PACKAGE* pPackage, - __deref_opt_out_z_opt LPWSTR* psczProviderKey, - __deref_opt_out_z_opt LPWSTR* psczId +HRESULT DependencyInitialize( + __in BURN_REGISTRATION* pRegistration, + __in_z_opt LPCWSTR wzIgnoreDependencies ); /******************************************************************** @@ -54,12 +47,20 @@ HRESULT DependencyDetectProviderKeyBundleId( __in BURN_REGISTRATION* pRegistration ); +/******************************************************************** + DependencyDetect - Detects dependency information. + +*********************************************************************/ +HRESULT DependencyDetect( + __in BURN_ENGINE_STATE* pEngineState + ); + /******************************************************************** DependencyPlanInitialize - Initializes the plan. *********************************************************************/ HRESULT DependencyPlanInitialize( - __in const BURN_ENGINE_STATE* pEngineState, + __in const BURN_REGISTRATION* pRegistration, __in BURN_PLAN* pPlan ); -- cgit v1.2.3-55-g6feb