blob: b5d19e13611d38de0bf388c027e84fcaea6ce793 [file] [log] [blame]
Vadim Bendebury56797522015-05-20 10:32:25 -07001// 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//
22LIB_EXPORT BOOL
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//
36LIB_EXPORT 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//
51LIB_EXPORT void
52_plat__ClearCancel(
53 void
54 )
55{
56 s_isCanceled = FALSE;
57 return;
58}