• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /**
26  * @brief Init parameter set
27  * @param paramSet required parameter set
28  * @return error code, see hks_type.h
29  */
HksInitParamSet(struct HksParamSet ** paramSet)30 static int32_t HksInitParamSet(struct HksParamSet **paramSet)
31 {
32     return HKS_SUCCESS;
33 }
34 
35 /**
36  * @brief Add parameter set
37  * @param paramSet required parameter set
38  * @param params params need to add
39  *
40  * @param paramCnt numbers of params
41  * @return error code, see hks_type.h
42  */
HksAddParams(struct HksParamSet * paramSet,const struct HksParam * params,uint32_t paramCnt)43 static int32_t HksAddParams(struct HksParamSet *paramSet, const struct HksParam *params, uint32_t paramCnt)
44 {
45     return HKS_SUCCESS;
46 }
47 
48 /**
49  * @brief Build parameter set
50  * @param paramSet required parameter set
51  * @return error code, see hks_type.h
52  */
HksBuildParamSet(struct HksParamSet ** paramSet)53 static int32_t HksBuildParamSet(struct HksParamSet **paramSet)
54 {
55     return HKS_SUCCESS;
56 }
57 
58 /**
59  * @brief Free parameter set
60  * @param paramSet required parameter set
61  * @return error code, see hks_type.h
62  */
HksFreeParamSet(struct HksParamSet ** paramSet)63 static void HksFreeParamSet(struct HksParamSet **paramSet)
64 {
65     return;
66 }
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif /* MOCK_HKS_PARAM_H */
73