1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (c) 2020, Open Mobile Platform LLC
4  */
5 
6 #ifndef TEE_PLUGIN_METHOD_H
7 #define TEE_PLUGIN_METHOD_H
8 
9 #include <stddef.h>
10 #include <tee_client_api.h>
11 
12 struct plugin_method {
13 	const char *name; /* short friendly name of the plugin */
14 	TEEC_UUID uuid;
15 	TEEC_Result (*init)(void);
16 	TEEC_Result (*invoke)(unsigned int cmd, unsigned int sub_cmd,
17 			      void *data, size_t in_len, size_t *out_len);
18 };
19 
20 #endif /* TEE_PLUGIN_METHOD_H */
21