Skip to content

Commit

Permalink
Update contract version to 12 in PackageManager.idl
Browse files Browse the repository at this point in the history
Revised the contract version from 11 to 12 for repair-specific implementations because version 11 conflicted with the previous addition but code wasn't in sync.
  • Loading branch information
Madhusudhan-MSFT committed Sep 7, 2024
1 parent 08cb8fe commit 84cadf0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Microsoft.Management.Deployment/PackageManager.idl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.
namespace Microsoft.Management.Deployment
{
[contractversion(11)] // For version 1.9
[contractversion(12)] // For version 1.9
apicontract WindowsPackageManagerContract{};

/// State of the install
Expand Down Expand Up @@ -152,7 +152,7 @@ namespace Microsoft.Management.Deployment
}

/// State of the repair
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
enum PackageRepairProgressState
{
/// The repair is queued but not yet active. Cancellation of the IAsyncOperationWithProgress in this
Expand All @@ -169,7 +169,7 @@ namespace Microsoft.Management.Deployment
};

/// Progress object for the repair
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
struct RepairProgress
{
/// State of the repair
Expand All @@ -182,7 +182,7 @@ namespace Microsoft.Management.Deployment
/// Status of the repair call
/// Implementation Note: Errors mapped from AppInstallerErrors.h
/// DESIGN NOTE: RepairResultStatus from AppInstallerErrors.h is not implemented in V1.
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
enum RepairResultStatus
{
Ok,
Expand All @@ -198,7 +198,7 @@ namespace Microsoft.Management.Deployment
};

/// Result of the repair
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
runtimeclass RepairResult
{
/// Used by a caller to correlate the repair with a caller's data.
Expand Down Expand Up @@ -1144,7 +1144,7 @@ namespace Microsoft.Management.Deployment
String CorrelationData;
}

[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
enum PackageRepairMode
{
/// The default experience for the installer. Installer may show some UI.
Expand All @@ -1156,7 +1156,7 @@ namespace Microsoft.Management.Deployment
Interactive,
};

[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
enum PackageRepairScope
{
/// Use default repair behavior.
Expand All @@ -1167,7 +1167,7 @@ namespace Microsoft.Management.Deployment
System,
};

[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
runtimeclass RepairOptions
{
RepairOptions();
Expand Down Expand Up @@ -1379,7 +1379,7 @@ namespace Microsoft.Management.Deployment
Windows.Foundation.IAsyncOperationWithProgress<DownloadResult, PackageDownloadProgress> GetDownloadProgress(CatalogPackage package, PackageCatalogInfo catalogInfo);
}

[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 11)]
[contract(Microsoft.Management.Deployment.WindowsPackageManagerContract, 12)]
{
// Repair the specified package
Windows.Foundation.IAsyncOperationWithProgress<RepairResult, RepairProgress> RepairPackageAsync(CatalogPackage package, RepairOptions options);
Expand Down

0 comments on commit 84cadf0

Please sign in to comment.