]> git.proxmox.com Git - mirror_qemu.git/blame - include/sysemu/tpm_backend_int.h
Clean up header guards that don't match their file name
[mirror_qemu.git] / include / sysemu / tpm_backend_int.h
CommitLineData
4549a8b7
SB
1/*
2 * common TPM backend driver functions
3 *
4 * Copyright (c) 2012-2013 IBM Corporation
5 * Authors:
6 * Stefan Berger <stefanb@us.ibm.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, see <http://www.gnu.org/licenses/>
20 */
21
121d0712
MA
22#ifndef TPM_BACKEND_INT_H
23#define TPM_BACKEND_INT_H
4549a8b7
SB
24
25typedef struct TPMBackendThread {
26 GThreadPool *pool;
27} TPMBackendThread;
28
29void tpm_backend_thread_deliver_request(TPMBackendThread *tbt);
30void tpm_backend_thread_create(TPMBackendThread *tbt,
31 GFunc func, gpointer user_data);
32void tpm_backend_thread_end(TPMBackendThread *tbt);
4549a8b7
SB
33
34typedef enum TPMBackendCmd {
35 TPM_BACKEND_CMD_INIT = 1,
36 TPM_BACKEND_CMD_PROCESS_CMD,
37 TPM_BACKEND_CMD_END,
38 TPM_BACKEND_CMD_TPM_RESET,
39} TPMBackendCmd;
40
121d0712 41#endif /* TPM_BACKEND_INT_H */