1 /* 2 * Copyright (C) 2025 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 IDENTITY_SERVICE_IMPL_H 17 #define IDENTITY_SERVICE_IMPL_H 18 19 #include "cred_listener.h" 20 21 int32_t AddCredentialImpl(int32_t osAccountId, const char *requestParams, char **returnData); 22 23 int32_t ExportCredentialImpl(int32_t osAccountId, const char *credId, char **returnData); 24 25 int32_t QueryCredentialByParamsImpl(int32_t osAccountId, const char *requestParams, char **returnData); 26 27 int32_t QueryCredInfoByCredIdImpl(int32_t osAccountId, int32_t uid, const char *credId, char **returnData); 28 29 int32_t DeleteCredentialImpl(int32_t osAccountId, const char *credId); 30 31 int32_t DeleteCredByParamsImpl(int32_t osAccountId, const char *requestParams, char **returnData); 32 33 int32_t UpdateCredInfoImpl(int32_t osAccountId, const char *credId, const char *requestParams); 34 35 int32_t BatchUpdateCredsImpl(int32_t osAccountId, const char *requestParams, char **returnData); 36 37 int32_t AgreeCredentialImpl(int32_t osAccountId, const char *selfCredId, const char *requestParams, char **returnData); 38 39 int32_t RegCredListener(const char *appId, const CredChangeListener *listener); 40 41 int32_t UnRegCredListener(const char *appId); 42 43 #endif // IDENTITY_SERVICE_IMPL_H