@@ -31,7 +31,7 @@ internal static partial class Libteec
31
31
/// </summary>
32
32
//TEEC_Result TEEC_InitializeContext(const char *name, TEEC_Context *context);
33
33
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_InitializeContext" , CallingConvention = CallingConvention . Cdecl ) ]
34
- static public extern int InitializeContext ( string name , ref TEEC_Context context ) ;
34
+ static public extern int InitializeContext ( string name , IntPtr context ) ;
35
35
36
36
/// <summary>
37
37
/// This function destroys an initialized TEE Context, closing the connection between the client application
@@ -43,7 +43,7 @@ internal static partial class Libteec
43
43
/// </summary>
44
44
//void TEEC_FinalizeContext(TEEC_Context *context);
45
45
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_FinalizeContext" , CallingConvention = CallingConvention . Cdecl ) ]
46
- static public extern void FinalizeContext ( ref TEEC_Context context ) ;
46
+ static public extern void FinalizeContext ( IntPtr context ) ;
47
47
48
48
/// <summary>
49
49
/// This function registers a block of existing client application memory as a block of shared memory within
@@ -54,7 +54,7 @@ internal static partial class Libteec
54
54
/// </summary>
55
55
//EEC_Result TEEC_RegisterSharedMemory(TEEC_Context *context, TEEC_SharedMemory *sharedMem);
56
56
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_RegisterSharedMemory" , CallingConvention = CallingConvention . Cdecl ) ]
57
- static public extern int RegisterSharedMemory ( ref TEEC_Context context , ref TEEC_SharedMemory sharedMem ) ;
57
+ static public extern int RegisterSharedMemory ( IntPtr context , ref TEEC_SharedMemory sharedMem ) ;
58
58
59
59
/// <summary>
60
60
/// This function allocates a new block of memory as a block of shared memory within the scope of the
@@ -65,7 +65,7 @@ internal static partial class Libteec
65
65
/// </summary>
66
66
//TEEC_Result TEEC_AllocateSharedMemory(TEEC_Context *context, TEEC_SharedMemory *sharedMem);
67
67
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_AllocateSharedMemory" , CallingConvention = CallingConvention . Cdecl ) ]
68
- static public extern int AllocateSharedMemory ( ref TEEC_Context context , ref TEEC_SharedMemory sharedMem ) ;
68
+ static public extern int AllocateSharedMemory ( IntPtr context , ref TEEC_SharedMemory sharedMem ) ;
69
69
70
70
/// <summary>
71
71
/// This function deregisters or deallocates a previously initialized block of the shared memory.
@@ -91,10 +91,7 @@ internal static partial class Libteec
91
91
/// </summary>
92
92
//TEEC_Result TEEC_OpenSession(TEEC_Context *context, TEEC_Session *session, const TEEC_UUID *destination, uint connectionMethod, const void *connectionData, TEEC_Operation *operation, uint *returnOrigin);
93
93
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_OpenSession" , CallingConvention = CallingConvention . Cdecl ) ]
94
- static public extern int OpenSession ( ref TEEC_Context context , ref TEEC_Session session , ref TEEC_UUID destination , uint connectionMethod , byte [ ] connectionData , ref TEEC_Operation operation , out uint returnOrigin ) ;
95
-
96
- [ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_OpenSession" , CallingConvention = CallingConvention . Cdecl ) ]
97
- static public extern int OpenSession ( ref TEEC_Context context , ref TEEC_Session session , ref TEEC_UUID destination , uint connectionMethod , byte [ ] connectionData , IntPtr operation , out uint returnOrigin ) ;
94
+ static public extern int OpenSession ( IntPtr context , IntPtr session , ref TEEC_UUID destination , uint connectionMethod , byte [ ] connectionData , IntPtr operation , out uint returnOrigin ) ;
98
95
99
96
/// <summary>
100
97
/// This function closes a session which has been opened with a trusted application.
@@ -105,7 +102,7 @@ internal static partial class Libteec
105
102
/// </summary>
106
103
//void TEEC_CloseSession(TEEC_Session *session);
107
104
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_CloseSession" , CallingConvention = CallingConvention . Cdecl ) ]
108
- static public extern void CloseSession ( ref TEEC_Session session ) ;
105
+ static public extern void CloseSession ( IntPtr session ) ;
109
106
110
107
/// <summary>
111
108
/// This function invokes a command within the specified session.
@@ -116,10 +113,7 @@ internal static partial class Libteec
116
113
/// </summary>
117
114
//TEEC_Result TEEC_InvokeCommand(TEEC_Session *session, uint commandID, TEEC_Operation *operation, uint *returnOrigin);
118
115
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_InvokeCommand" , CallingConvention = CallingConvention . Cdecl ) ]
119
- static public extern int InvokeCommand ( ref TEEC_Session session , uint commandID , ref TEEC_Operation operation , out uint returnOrigin ) ;
120
-
121
- [ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_InvokeCommand" , CallingConvention = CallingConvention . Cdecl ) ]
122
- static public extern int InvokeCommand ( ref TEEC_Session session , uint commandID , IntPtr operation , out uint returnOrigin ) ;
116
+ static public extern int InvokeCommand ( IntPtr session , uint commandID , IntPtr operation , out uint returnOrigin ) ;
123
117
124
118
/// <summary>
125
119
/// This function requests the cancelation of a pending open session operation or a command invocation
@@ -131,6 +125,6 @@ internal static partial class Libteec
131
125
/// </summary>
132
126
//void TEEC_RequestCancellation(TEEC_Operation *operation);
133
127
[ DllImport ( Libraries . Libteec , EntryPoint = "TEEC_RequestCancellation" , CallingConvention = CallingConvention . Cdecl ) ]
134
- static public extern void RequestCancellation ( ref TEEC_Operation operation ) ;
128
+ static public extern void RequestCancellation ( IntPtr operation ) ;
135
129
}
136
130
}
0 commit comments