1 // Licensed to the Apache Software Foundation (ASF) under one 2 // or more contributor license agreements. See the NOTICE file 3 // distributed with this work for additional information 4 // regarding copyright ownership. The ASF licenses this file 5 // to you under the Apache License, Version 2.0 (the 6 // "License"); you may not use this file except in compliance 7 // with the License. You may obtain a copy of the License at 8 // 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, 12 // software distributed under the License is distributed on an 13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 // KIND, either express or implied. See the License for the 15 // specific language governing permissions and limitations 16 // under the License. 17 18 use super::*; 19 use libc::*; 20 21 extern "C" { 22 /// tee_invoke_supp_plugin() - invoke a tee-supplicant's plugin 23 /// @uuid: uuid of the plugin 24 /// @cmd: command for the plugin 25 /// @sub_cmd: subcommand for the plugin 26 /// @buf: data [for/from] the plugin [in/out] 27 /// @len: length of the input buf 28 /// @outlen: pointer to length of the output data (if they will be used) 29 /// Return TEE_SUCCESS on success or TEE_ERRROR_* on failure. tee_invoke_supp_plugin( uuid: *const TEE_UUID, cmd: u32, sub_cmd: u32, buf: *mut c_char, len: u32, outlen: *mut u32, ) -> TEE_Result30 pub fn tee_invoke_supp_plugin( 31 uuid: *const TEE_UUID, 32 cmd: u32, 33 sub_cmd: u32, 34 buf: *mut c_char, 35 len: u32, 36 outlen: *mut u32, 37 ) -> TEE_Result; 38 39 } 40