1 /* 2 * Copyright (c) 2022 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 DISTRIBUTED_OBJECT_TYPES_UTIL_H 17 #define DISTRIBUTED_OBJECT_TYPES_UTIL_H 18 19 #include "itypes_util.h" 20 #include "object_types.h" 21 22 namespace OHOS::ITypesUtil { 23 using AssetBindInfo = OHOS::ObjectStore::AssetBindInfo; 24 using Asset = OHOS::ObjectStore::Asset; 25 26 template<> 27 bool Marshalling(const AssetBindInfo &input, MessageParcel &data); 28 template<> 29 bool Unmarshalling(AssetBindInfo &output, MessageParcel &data); 30 template<> 31 bool Marshalling(const Asset &input, MessageParcel &data); 32 template<> 33 bool Unmarshalling(Asset &output, MessageParcel &data); 34 } 35 #endif // DISTRIBUTED_RDB_RDB_TYPES_UTIL_H 36