1 // This file was extracted from the TCG Published
2 // Trusted Platform Module Library
3 // Part 4: Supporting Routines
4 // Family "2.0"
5 // Level 00 Revision 01.16
6 // October 30, 2014
7 
8 #include "PlatformData.h"
9 //
10 //
11 //          Functions
12 //
13 //          _plat__IsCanceled()
14 //
15 //     Check if the cancel flag is set
16 //
17 //     Return Value                      Meaning
18 //
19 //     TRUE                              if cancel flag is set
20 //     FALSE                             if cancel flag is not set
21 //
22 LIB_EXPORT BOOL
_plat__IsCanceled(void)23 _plat__IsCanceled(
24      void
25      )
26 {
27      // return cancel flag
28      return s_isCanceled;
29 }
30 //
31 //
32 //          _plat__SetCancel()
33 //
34 //     Set cancel flag.
35 //
36 LIB_EXPORT void
_plat__SetCancel(void)37 _plat__SetCancel(
38      void
39      )
40 {
41      s_isCanceled = TRUE;
42      return;
43 }
44 //
45 //
46 //
47 //        _plat__ClearCancel()
48 //
49 //     Clear cancel flag
50 //
51 LIB_EXPORT void
_plat__ClearCancel(void)52 _plat__ClearCancel(
53    void
54    )
55 {
56    s_isCanceled = FALSE;
57    return;
58 }
59