Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: src/tlcl/tlcl.h

Issue 2822042: Add device open/close. (Closed) Base URL: ssh://git@chromiumos-git/tpm_lite.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/tlcl/tlcl.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/tlcl/tlcl.h
diff --git a/src/tlcl/tlcl.h b/src/tlcl/tlcl.h
index 570d884178fa7a4b5b7fb0594286924a1b123676..4dce9b179eb1704eef543ccdb82cf52cf325af55 100644
--- a/src/tlcl/tlcl.h
+++ b/src/tlcl/tlcl.h
@@ -55,6 +55,13 @@ static void warning(const char *format, ...) {
*/
void TlclLibInit(void);
+/* Close and open the device. This is needed for running more complex commands
+ * at user level, such as TPM_TakeOwnership, since the TPM device can be opened
+ * only by one process at a time.
+ */
+void TlclCloseDevice(void);
+void TlclOpenDevice(void);
+
/* Logs to stdout. Arguments like printf.
*/
void TlclLog(char* format, ...);
« no previous file with comments | « no previous file | src/tlcl/tlcl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698