aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/burn/engine/logging.h')
-rw-r--r--src/burn/engine/logging.h153
1 files changed, 153 insertions, 0 deletions
diff --git a/src/burn/engine/logging.h b/src/burn/engine/logging.h
new file mode 100644
index 00000000..601039f9
--- /dev/null
+++ b/src/burn/engine/logging.h
@@ -0,0 +1,153 @@
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#if defined(__cplusplus)
6extern "C" {
7#endif
8
9
10// constants
11
12enum BURN_LOGGING_STATE
13{
14 BURN_LOGGING_STATE_CLOSED,
15 BURN_LOGGING_STATE_OPEN,
16 BURN_LOGGING_STATE_DISABLED,
17};
18
19enum BURN_LOGGING_ATTRIBUTE
20{
21 BURN_LOGGING_ATTRIBUTE_APPEND = 0x1,
22 BURN_LOGGING_ATTRIBUTE_VERBOSE = 0x2,
23 BURN_LOGGING_ATTRIBUTE_EXTRADEBUG = 0x4,
24};
25
26
27// structs
28
29typedef struct _BURN_LOGGING
30{
31 BURN_LOGGING_STATE state;
32 LPWSTR sczPathVariable;
33
34 DWORD dwAttributes;
35 LPWSTR sczPath;
36 LPWSTR sczPrefix;
37 LPWSTR sczExtension;
38} BURN_LOGGING;
39
40
41
42// function declarations
43
44HRESULT LoggingOpen(
45 __in BURN_LOGGING* pLog,
46 __in BURN_VARIABLES* pVariables,
47 __in BOOTSTRAPPER_DISPLAY display,
48 __in_z LPCWSTR wzBundleName
49 );
50
51void LoggingOpenFailed();
52
53void LoggingIncrementPackageSequence();
54
55HRESULT LoggingSetPackageVariable(
56 __in BURN_PACKAGE* pPackage,
57 __in_z_opt LPCWSTR wzSuffix,
58 __in BOOL fRollback,
59 __in BURN_LOGGING* pLog,
60 __in BURN_VARIABLES* pVariables,
61 __out_opt LPWSTR* psczLogPath
62 );
63
64LPCSTR LoggingBurnActionToString(
65 __in BOOTSTRAPPER_ACTION action
66 );
67
68LPCSTR LoggingBurnMessageToString(
69 __in UINT message
70 );
71
72LPCSTR LoggingActionStateToString(
73 __in BOOTSTRAPPER_ACTION_STATE actionState
74 );
75
76LPCSTR LoggingDependencyActionToString(
77 BURN_DEPENDENCY_ACTION action
78 );
79
80LPCSTR LoggingBoolToString(
81 __in BOOL f
82 );
83
84LPCSTR LoggingTrueFalseToString(
85 __in BOOL f
86 );
87
88LPCSTR LoggingPackageStateToString(
89 __in BOOTSTRAPPER_PACKAGE_STATE packageState
90 );
91
92LPCSTR LoggingPackageRegistrationStateToString(
93 __in BOOL fCanAffectRegistration,
94 __in BURN_PACKAGE_REGISTRATION_STATE registrationState
95 );
96
97LPCSTR LoggingMsiFeatureStateToString(
98 __in BOOTSTRAPPER_FEATURE_STATE featureState
99 );
100
101LPCSTR LoggingMsiFeatureActionToString(
102 __in BOOTSTRAPPER_FEATURE_ACTION featureAction
103 );
104
105LPCSTR LoggingMsiInstallContext(
106 __in MSIINSTALLCONTEXT context
107 );
108
109LPCWSTR LoggingBurnMsiPropertyToString(
110 __in BURN_MSI_PROPERTY burnMsiProperty
111 );
112
113LPCSTR LoggingMspTargetActionToString(
114 __in BOOTSTRAPPER_ACTION_STATE action,
115 __in BURN_PATCH_SKIP_STATE skipState
116 );
117
118LPCSTR LoggingPerMachineToString(
119 __in BOOL fPerMachine
120 );
121
122LPCSTR LoggingRestartToString(
123 __in BOOTSTRAPPER_APPLY_RESTART restart
124 );
125
126LPCSTR LoggingResumeModeToString(
127 __in BURN_RESUME_MODE resumeMode
128 );
129
130LPCSTR LoggingRelationTypeToString(
131 __in BOOTSTRAPPER_RELATION_TYPE type
132 );
133
134LPCSTR LoggingRelatedOperationToString(
135 __in BOOTSTRAPPER_RELATED_OPERATION operation
136 );
137
138LPCSTR LoggingRequestStateToString(
139 __in BOOTSTRAPPER_REQUEST_STATE requestState
140 );
141
142LPCSTR LoggingRollbackOrExecute(
143 __in BOOL fRollback
144 );
145
146LPWSTR LoggingStringOrUnknownIfNull(
147 __in LPCWSTR wz
148 );
149
150
151#if defined(__cplusplus)
152}
153#endif