aboutsummaryrefslogtreecommitdiff
path: root/ContextSave_fp.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-05-29 22:45:03 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-03 21:17:27 +0000
commitf7ee38d0e388f8be2272ba202f182855222eabb4 (patch)
tree1a7ecec7d19ff80adc634a621059bcdd3587d625 /ContextSave_fp.h
parent3743ac1a96b45f78720fb5008771b90d9e2c5ade (diff)
downloadtpm2-f7ee38d0e388f8be2272ba202f182855222eabb4.tar.gz
Changes to allow compilation of ContextSave.c
BUG=none TEST=compilation succeeds: cc -Wall -Werror -c -o /dev/null ContextSave.c Change-Id: I9d6c9a02b2e3747dc9536cec36fc2f3d8794b9a0 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274096 Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Diffstat (limited to 'ContextSave_fp.h')
-rw-r--r--ContextSave_fp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ContextSave_fp.h b/ContextSave_fp.h
new file mode 100644
index 0000000..ba3dbfa
--- /dev/null
+++ b/ContextSave_fp.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright 2015 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __TPM2_CONTEXTSAVE_FP_H
+#define __TPM2_CONTEXTSAVE_FP_H
+
+typedef struct {
+ TPMI_DH_OBJECT saveHandle;
+} ContextSave_In;
+
+typedef struct {
+ TPMS_CONTEXT context;
+} ContextSave_Out;
+
+TPM_RC TPM2_ContextSave(
+ ContextSave_In *in, // IN: input parameter list
+ ContextSave_Out *out // OUT: output parameter list
+ );
+
+#endif // __TPM2_CONTEXTSAVE_FP_H