1f5921b11Sopenharmony_ci/* 2f5921b11Sopenharmony_ci * Copyright (c) 2020-2022 Huawei Device Co., Ltd. 3f5921b11Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4f5921b11Sopenharmony_ci * you may not use this file except in compliance with the License. 5f5921b11Sopenharmony_ci * You may obtain a copy of the License at 6f5921b11Sopenharmony_ci * 7f5921b11Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8f5921b11Sopenharmony_ci * 9f5921b11Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10f5921b11Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11f5921b11Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12f5921b11Sopenharmony_ci * See the License for the specific language governing permissions and 13f5921b11Sopenharmony_ci * limitations under the License. 14f5921b11Sopenharmony_ci */ 15f5921b11Sopenharmony_ci 16f5921b11Sopenharmony_ci#ifndef OHOS_IPC_AUTH_INTERFACE_H 17f5921b11Sopenharmony_ci#define OHOS_IPC_AUTH_INTERFACE_H 18f5921b11Sopenharmony_ci 19f5921b11Sopenharmony_ci#include "iunknown.h" 20f5921b11Sopenharmony_ci#include "pms_common.h" 21f5921b11Sopenharmony_ci#include "policy_define.h" 22f5921b11Sopenharmony_ci 23f5921b11Sopenharmony_ci#ifdef __cplusplus 24f5921b11Sopenharmony_ci#if __cplusplus 25f5921b11Sopenharmony_ciextern "C" { 26f5921b11Sopenharmony_ci#endif 27f5921b11Sopenharmony_ci#endif 28f5921b11Sopenharmony_ci 29f5921b11Sopenharmony_citypedef struct { 30f5921b11Sopenharmony_ci INHERIT_IUNKNOWN; 31f5921b11Sopenharmony_ci int (*GetCommunicationStrategy)(RegParams params, PolicyTrans **policies, unsigned int *policyNum); 32f5921b11Sopenharmony_ci int (*IsCommunicationAllowed)(AuthParams params); 33f5921b11Sopenharmony_ci} IpcAuthInterface; 34f5921b11Sopenharmony_ci 35f5921b11Sopenharmony_ci#ifdef __cplusplus 36f5921b11Sopenharmony_ci#if __cplusplus 37f5921b11Sopenharmony_ci} 38f5921b11Sopenharmony_ci#endif 39f5921b11Sopenharmony_ci#endif 40f5921b11Sopenharmony_ci#endif // OHOS_IPC_AUTH_INTERFACE_H