aboutsummaryrefslogtreecommitdiff
path: root/src/balutil/inc/balretry.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/balutil/inc/balretry.h')
-rw-r--r--src/balutil/inc/balretry.h37
1 files changed, 23 insertions, 14 deletions
diff --git a/src/balutil/inc/balretry.h b/src/balutil/inc/balretry.h
index 040ab4ae..35282a7e 100644
--- a/src/balutil/inc/balretry.h
+++ b/src/balutil/inc/balretry.h
@@ -6,12 +6,6 @@
6extern "C" { 6extern "C" {
7#endif 7#endif
8 8
9typedef enum BALRETRY_TYPE
10{
11 BALRETRY_TYPE_CACHE,
12 BALRETRY_TYPE_EXECUTE,
13} BALRETRY_TYPE;
14
15/******************************************************************* 9/*******************************************************************
16 BalRetryInitialize - initialize the retry count and timeout between 10 BalRetryInitialize - initialize the retry count and timeout between
17 retries (in milliseconds). 11 retries (in milliseconds).
@@ -33,9 +27,7 @@ DAPI_(void) BalRetryUninitialize();
33 wait the specified timeout. 27 wait the specified timeout.
34********************************************************************/ 28********************************************************************/
35DAPI_(void) BalRetryStartPackage( 29DAPI_(void) BalRetryStartPackage(
36 __in BALRETRY_TYPE type, 30 __in_z LPCWSTR wzPackageId
37 __in_z_opt LPCWSTR wzPackageId,
38 __in_z_opt LPCWSTR wzPayloadId
39 ); 31 );
40 32
41/******************************************************************* 33/*******************************************************************
@@ -43,17 +35,34 @@ DAPI_(void) BalRetryStartPackage(
43 to consider. 35 to consider.
44********************************************************************/ 36********************************************************************/
45DAPI_(void) BalRetryErrorOccurred( 37DAPI_(void) BalRetryErrorOccurred(
46 __in_z_opt LPCWSTR wzPackageId, 38 __in_z LPCWSTR wzPackageId,
47 __in DWORD dwError 39 __in DWORD dwError
48 ); 40 );
49 41
50/******************************************************************* 42/*******************************************************************
51 BalRetryEndPackage - returns IDRETRY is a retry is recommended or 43 BalRetryEndPackage - returns TRUE if a retry is recommended.
52 IDNOACTION if a retry is not recommended.
53********************************************************************/ 44********************************************************************/
54DAPI_(HRESULT) BalRetryEndPackage( 45DAPI_(HRESULT) BalRetryEndPackage(
55 __in BALRETRY_TYPE type, 46 __in_z LPCWSTR wzPackageId,
56 __in_z_opt LPCWSTR wzPackageId, 47 __in HRESULT hrError,
48 __inout BOOL* pfRetry
49 );
50
51/*******************************************************************
52 BalRetryStartContainerOrPayload - call when a container or payload
53 begins to be acquired. If the target is being retried,
54 the function will wait the specified timeout.
55********************************************************************/
56DAPI_(void) BalRetryStartContainerOrPayload(
57 __in_z_opt LPCWSTR wzContainerOrPackageId,
58 __in_z_opt LPCWSTR wzPayloadId
59 );
60
61/*******************************************************************
62 BalRetryEndContainerOrPayload - returns TRUE if a retry is recommended.
63********************************************************************/
64DAPI_(HRESULT) BalRetryEndContainerOrPayload(
65 __in_z_opt LPCWSTR wzContainerOrPackageId,
57 __in_z_opt LPCWSTR wzPayloadId, 66 __in_z_opt LPCWSTR wzPayloadId,
58 __in HRESULT hrError, 67 __in HRESULT hrError,
59 __inout BOOL* pfRetry 68 __inout BOOL* pfRetry