1 /*
2  * Copyright (c) 2024 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *    http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef MOCK_HKS_PARAM_H
17 #define MOCK_HKS_PARAM_H
18 
19 #include "hks_type.h"
20 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /**
27  * @brief Init parameter set
28  * @param paramSet required parameter set
29  * @return error code, see hks_type.h
30  */
HksInitParamSet(struct HksParamSet ** paramSet)31 static int32_t HksInitParamSet(struct HksParamSet **paramSet)
32 {
33     return HKS_SUCCESS;
34 }
35 
36 /**
37  * @brief Add parameter set
38  * @param paramSet required parameter set
39  * @param params params need to add
40  *
41  * @param paramCnt numbers of params
42  * @return error code, see hks_type.h
43  */
HksAddParams(struct HksParamSet * paramSet,const struct HksParam * params,uint32_t paramCnt)44 static int32_t HksAddParams(struct HksParamSet *paramSet,
45     const struct HksParam *params, uint32_t paramCnt)
46 {
47     return HKS_SUCCESS;
48 }
49 
50 /**
51  * @brief Build parameter set
52  * @param paramSet required parameter set
53  * @return error code, see hks_type.h
54  */
HksBuildParamSet(struct HksParamSet ** paramSet)55 static int32_t HksBuildParamSet(struct HksParamSet **paramSet)
56 {
57     return HKS_SUCCESS;
58 }
59 
60 /**
61  * @brief Free parameter set
62  * @param paramSet required parameter set
63  * @return error code, see hks_type.h
64  */
HksFreeParamSet(struct HksParamSet ** paramSet)65 static void HksFreeParamSet(struct HksParamSet **paramSet)
66 {
67     return ;
68 }
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif /* MOCK_HKS_PARAM_H */
75