diff options
Diffstat (limited to '')
-rw-r--r-- | src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs b/src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs deleted file mode 100644 index 344fc058..00000000 --- a/src/WixToolset.Data/Symbols/WixPatchIdSymbol.cs +++ /dev/null | |||
@@ -1,90 +0,0 @@ | |||
1 | // 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 | |||
3 | namespace WixToolset.Data | ||
4 | { | ||
5 | using WixToolset.Data.Symbols; | ||
6 | |||
7 | public static partial class SymbolDefinitions | ||
8 | { | ||
9 | public static readonly IntermediateSymbolDefinition WixPatchId = new IntermediateSymbolDefinition( | ||
10 | SymbolDefinitionType.WixPatchId, | ||
11 | new[] | ||
12 | { | ||
13 | new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.ClientPatchId), IntermediateFieldType.String), | ||
14 | new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles), IntermediateFieldType.Bool), | ||
15 | new IntermediateFieldDefinition(nameof(WixPatchIdSymbolFields.ApiPatchingSymbolFlags), IntermediateFieldType.Number), | ||
16 | }, | ||
17 | typeof(WixPatchIdSymbol)); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | namespace WixToolset.Data.Symbols | ||
22 | { | ||
23 | using System; | ||
24 | |||
25 | public enum WixPatchIdSymbolFields | ||
26 | { | ||
27 | ClientPatchId, | ||
28 | OptimizePatchSizeForLargeFiles, | ||
29 | ApiPatchingSymbolFlags, | ||
30 | } | ||
31 | |||
32 | /// <summary> | ||
33 | /// The following flags are used with PATCH_OPTION_DATA SymbolOptionFlags: | ||
34 | /// </summary> | ||
35 | [Flags] | ||
36 | [CLSCompliant(false)] | ||
37 | public enum PatchSymbolFlags : uint | ||
38 | { | ||
39 | /// <summary> | ||
40 | /// Don't use imagehlp.dll | ||
41 | /// </summary> | ||
42 | PatchSymbolNoImagehlp = 0x00000001, | ||
43 | |||
44 | /// <summary> | ||
45 | /// Don't fail patch due to imagehlp failures. | ||
46 | /// </summary> | ||
47 | PatchSymbolNoFailures = 0x00000002, | ||
48 | |||
49 | /// <summary> | ||
50 | /// After matching decorated symbols, try to match remaining by undecorated names. | ||
51 | /// </summary> | ||
52 | PatchSymbolUndecoratedToo = 0x00000004, | ||
53 | |||
54 | /// <summary> | ||
55 | /// (used internally) | ||
56 | /// </summary> | ||
57 | PatchSymbolReserved = 0x80000000, | ||
58 | } | ||
59 | |||
60 | public class WixPatchIdSymbol : IntermediateSymbol | ||
61 | { | ||
62 | public WixPatchIdSymbol() : base(SymbolDefinitions.WixPatchId, null, null) | ||
63 | { | ||
64 | } | ||
65 | |||
66 | public WixPatchIdSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.WixPatchId, sourceLineNumber, id) | ||
67 | { | ||
68 | } | ||
69 | |||
70 | public IntermediateField this[WixPatchIdSymbolFields index] => this.Fields[(int)index]; | ||
71 | |||
72 | public string ClientPatchId | ||
73 | { | ||
74 | get => (string)this.Fields[(int)WixPatchIdSymbolFields.ClientPatchId]; | ||
75 | set => this.Set((int)WixPatchIdSymbolFields.ClientPatchId, value); | ||
76 | } | ||
77 | |||
78 | public bool? OptimizePatchSizeForLargeFiles | ||
79 | { | ||
80 | get => (bool?)this.Fields[(int)WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles]; | ||
81 | set => this.Set((int)WixPatchIdSymbolFields.OptimizePatchSizeForLargeFiles, value); | ||
82 | } | ||
83 | |||
84 | public int? ApiPatchingSymbolFlags | ||
85 | { | ||
86 | get => (int?)this.Fields[(int)WixPatchIdSymbolFields.ApiPatchingSymbolFlags]; | ||
87 | set => this.Set((int)WixPatchIdSymbolFields.ApiPatchingSymbolFlags, value); | ||
88 | } | ||
89 | } | ||
90 | } \ No newline at end of file | ||