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 #ifndef SAVE_TRUSTED_INFO_H 17 #define SAVE_TRUSTED_INFO_H 18 19 #include "base_cmd.h" 20 21 #define SAVE_TRUSTED_INFO_CMD_TYPE 4 22 23 typedef struct { 24 int32_t osAccountId; 25 int32_t credType; 26 int32_t userType; 27 int32_t visibility; 28 const char *appId; 29 const char *groupId; 30 const char *authId; 31 bool isBind; 32 } SaveTrustedInfoParams; 33 34 #ifdef ENABLE_SAVE_TRUSTED_INFO 35 36 #ifdef __cplusplus 37 extern "C" { 38 #endif 39 40 BaseCmd *CreateSaveTrustedInfoCmd(const void *baseParams, bool isCaller, int32_t strategy); 41 42 #ifdef __cplusplus 43 } 44 #endif 45 46 #endif 47 48 #endif 49