winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

PackageDependenciesValidationUtil.h (792B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include <winget/ManifestValidation.h>
      5 
      6 namespace AppInstaller::Manifest
      7 {
      8     enum WinGetManifestDependenciesErrorResult : uint32_t
      9     {
     10         None = 0x0,
     11 
     12         // Each validation step should have an enum for corresponding failure.
     13         SingleManifestPackageHasDependencies = 0x10000,
     14         MultiManifestPackageHasDependencies = 0x20000,
     15         MissingManifestDependenciesNode = 0x40000,
     16         NoSuitableMinVersionDependency = 0x80000,
     17         FoundDependencyLoop = 0x100000,
     18     };
     19 
     20     DEFINE_ENUM_FLAG_OPERATORS(WinGetManifestDependenciesErrorResult);
     21 
     22     WinGetManifestDependenciesErrorResult GetDependenciesValidationResultFromException(const ManifestException& manifestException);
     23 }