aboutsummaryrefslogtreecommitdiff
path: root/GetCapability_fp.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-05-31 14:44:07 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-03 21:19:11 +0000
commitbbd79006638e983c14ae2b644146ab6b05856e6e (patch)
tree6006d9812502e4d2b1584a3c486279531c166adc /GetCapability_fp.h
parentc34f4d92ff1a6f37e2d1a750c57bc83f722aa007 (diff)
downloadtpm2-bbd79006638e983c14ae2b644146ab6b05856e6e.tar.gz
Changes to allow compilation of GetCapability.c
BUG=none TEST=compilation succeeds: cc -Wall -Werror -c -o /dev/null GetCapability.c Change-Id: Id29ea0029c232c6d9e41f98b6dd24d73bf59a065 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/274185 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
Diffstat (limited to 'GetCapability_fp.h')
-rw-r--r--GetCapability_fp.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/GetCapability_fp.h b/GetCapability_fp.h
new file mode 100644
index 0000000..d273d20
--- /dev/null
+++ b/GetCapability_fp.h
@@ -0,0 +1,26 @@
+/*
+ * 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_GETCAPABILITY_FP_H
+#define __TPM2_GETCAPABILITY_FP_H
+
+typedef struct {
+ TPM_CAP capability;
+ UINT32 propertyCount;
+ UINT32 property;
+} GetCapability_In;
+
+typedef struct {
+ TPMI_YES_NO moreData;
+ TPMS_CAPABILITY_DATA capabilityData;
+} GetCapability_Out;
+
+TPM_RC TPM2_GetCapability(
+ GetCapability_In *in, // IN: input parameter list
+ GetCapability_Out *out // OUT: output parameter list
+);
+
+#endif // __TPM2_GETCAPABILITY_FP_H