xref: /aosp_15_r20/external/mesa3d/src/gallium/frontends/nine/authenticatedchannel9.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright 2011 Joakim Sindholt <[email protected]>
3  * SPDX-License-Identifier: MIT
4  */
5 
6 #ifndef _NINE_AUTHENTICATEDCHANNEL9_H_
7 #define _NINE_AUTHENTICATEDCHANNEL9_H_
8 
9 #include "iunknown.h"
10 
11 struct NineAuthenticatedChannel9
12 {
13     struct NineUnknown base;
14 };
15 static inline struct NineAuthenticatedChannel9 *
NineAuthenticatedChannel9(void * data)16 NineAuthenticatedChannel9( void *data )
17 {
18     return (struct NineAuthenticatedChannel9 *)data;
19 }
20 
21 HRESULT NINE_WINAPI
22 NineAuthenticatedChannel9_GetCertificateSize( struct NineAuthenticatedChannel9 *This,
23                                               UINT *pCertificateSize );
24 
25 HRESULT NINE_WINAPI
26 NineAuthenticatedChannel9_GetCertificate( struct NineAuthenticatedChannel9 *This,
27                                           UINT CertifacteSize,
28                                           BYTE *ppCertificate );
29 
30 HRESULT NINE_WINAPI
31 NineAuthenticatedChannel9_NegotiateKeyExchange( struct NineAuthenticatedChannel9 *This,
32                                                 UINT DataSize,
33                                                 void *pData );
34 
35 HRESULT NINE_WINAPI
36 NineAuthenticatedChannel9_Query( struct NineAuthenticatedChannel9 *This,
37                                  UINT InputSize,
38                                  const void *pInput,
39                                  UINT OutputSize,
40                                  void *pOutput );
41 
42 HRESULT NINE_WINAPI
43 NineAuthenticatedChannel9_Configure( struct NineAuthenticatedChannel9 *This,
44                                      UINT InputSize,
45                                      const void *pInput,
46                                      D3DAUTHENTICATEDCHANNEL_CONFIGURE_OUTPUT *pOutput );
47 
48 #endif /* _NINE_AUTHENTICATEDCHANNEL9_H_ */
49