• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2023 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 #include "sec_comp_enhance_kit.h"
17 
18 #include "sec_comp_enhance_adapter.h"
19 
InitSecCompClientEnhance()20 extern "C" void InitSecCompClientEnhance()
21 {
22     OHOS::Security::SecurityComponent::SecCompEnhanceKit::InitClientEnhance();
23 }
24 
25 namespace OHOS {
26 namespace Security {
27 namespace SecurityComponent {
InitClientEnhance(void)28 void SecCompEnhanceKit::InitClientEnhance(void)
29 {
30     SecCompEnhanceAdapter::InitEnhanceHandler(SEC_COMP_ENHANCE_CLIENT_INTERFACE);
31 }
32 
SetEnhanceCfg(uint8_t * cfg,uint32_t cfgLen)33 int32_t SecCompEnhanceKit::SetEnhanceCfg(uint8_t* cfg, uint32_t cfgLen)
34 {
35     return SecCompEnhanceAdapter::SetEnhanceCfg(cfg, cfgLen);
36 }
37 
GetPointerEventEnhanceData(void * data,uint32_t dataLen,uint8_t * enhanceData,uint32_t & enHancedataLen)38 int32_t SecCompEnhanceKit::GetPointerEventEnhanceData(void* data, uint32_t dataLen,
39     uint8_t* enhanceData, uint32_t& enHancedataLen)
40 {
41     return SecCompEnhanceAdapter::GetPointerEventEnhanceData(data, dataLen, enhanceData, enHancedataLen);
42 }
43 }  // namespace SecurityComponent
44 }  // namespace Security
45 }  // namespace OHOS
46