Module: wine
Branch: master
Commit: dbabe2fa496fb5ba43a32636658106945ecc1d15
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dbabe2fa496fb5ba43a32636…
Author: Alex Henrie <alexhenrie24(a)gmail.com>
Date: Tue Jun 29 20:33:48 2021 -0600
tbs: Add Tbsi_Context_Create stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51335
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/tbs/Makefile.in | 3 +++
dlls/tbs/tbs.c | 31 +++++++++++++++++++++++++++++++
dlls/tbs/tbs.spec | 2 +-
3 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/dlls/tbs/Makefile.in b/dlls/tbs/Makefile.in
index 8f23c81e4f9..454d66bc6f4 100644
--- a/dlls/tbs/Makefile.in
+++ b/dlls/tbs/Makefile.in
@@ -1,3 +1,6 @@
MODULE = tbs.dll
EXTRADLLFLAGS = -mno-cygwin
+
+C_SRCS = \
+ tbs.c
diff --git a/dlls/tbs/tbs.c b/dlls/tbs/tbs.c
new file mode 100644
index 00000000000..452a3890e68
--- /dev/null
+++ b/dlls/tbs/tbs.c
@@ -0,0 +1,31 @@
+/*
+ * Trusted Platform Module Base Services
+ *
+ * Copyright 2021 Alex Henrie
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "windef.h"
+#include "tbs.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(tbs);
+
+TBS_RESULT WINAPI Tbsi_Context_Create(const TBS_CONTEXT_PARAMS *params, TBS_HCONTEXT *out)
+{
+ FIXME("(%p, %p) stub\n", params, out);
+ return TBS_E_TPM_NOT_FOUND;
+}
diff --git a/dlls/tbs/tbs.spec b/dlls/tbs/tbs.spec
index 3fa5c04f863..151ea1c6478 100644
--- a/dlls/tbs/tbs.spec
+++ b/dlls/tbs/tbs.spec
@@ -3,7 +3,7 @@
@ stub GetDeviceID
@ stub GetDeviceIDString
@ stub GetDeviceIDWithTimeout
-@ stub Tbsi_Context_Create
+@ stdcall Tbsi_Context_Create(ptr ptr)
@ stub Tbsi_Create_Windows_Key
@ stub Tbsi_FilterLog
@ stub Tbsi_GetDeviceInfo
Module: wine
Branch: master
Commit: 295c657de7f4c03a5b699bad0e26dd3a834094cc
URL: https://source.winehq.org/git/wine.git/?a=commit;h=295c657de7f4c03a5b699bad…
Author: Alex Henrie <alexhenrie24(a)gmail.com>
Date: Tue Jun 29 20:33:46 2021 -0600
include: Add tbs.h.
Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
include/Makefile.in | 1 +
include/tbs.h | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/include/Makefile.in b/include/Makefile.in
index e6477d13cef..d5e4679c5db 100644
--- a/include/Makefile.in
+++ b/include/Makefile.in
@@ -686,6 +686,7 @@ SOURCES = \
t2embapi.h \
tapi.h \
taskschd.idl \
+ tbs.h \
tchar.h \
tcpestats.h \
tcpmib.h \
diff --git a/include/tbs.h b/include/tbs.h
new file mode 100644
index 00000000000..749624c2aee
--- /dev/null
+++ b/include/tbs.h
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2021 Alex Henrie
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#ifndef _TBS_H_
+#define _TBS_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef UINT32 TBS_RESULT;
+
+typedef struct tdTBS_CONTEXT_PARAMS
+{
+ UINT32 version;
+} TBS_CONTEXT_PARAMS, *PTBS_CONTEXT_PARAMS;
+
+typedef void *TBS_HCONTEXT, **PTBS_HCONTEXT;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif