1 /*
2  * Copyright (C) 2018 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "CppSafeUnion.h"
18 
19 namespace android {
20 namespace hardware {
21 namespace tests {
22 namespace safeunion {
23 namespace cpp {
24 namespace V1_0 {
25 namespace implementation {
26 
repeatPointerFmqSafeUnion(const ICppSafeUnion::PointerFmqSafeUnion & fmq,repeatPointerFmqSafeUnion_cb _hidl_cb)27 Return<void> CppSafeUnion::repeatPointerFmqSafeUnion(const ICppSafeUnion::PointerFmqSafeUnion& fmq,
28                                                      repeatPointerFmqSafeUnion_cb _hidl_cb) {
29     _hidl_cb(fmq);
30     return Void();
31 }
32 
repeatFmqSafeUnion(const ICppSafeUnion::FmqSafeUnion & fmq,repeatFmqSafeUnion_cb _hidl_cb)33 Return<void> CppSafeUnion::repeatFmqSafeUnion(const ICppSafeUnion::FmqSafeUnion& fmq,
34                                               repeatFmqSafeUnion_cb _hidl_cb) {
35     _hidl_cb(fmq);
36     return Void();
37 }
38 
HIDL_FETCH_ICppSafeUnion(const char *)39 ICppSafeUnion* HIDL_FETCH_ICppSafeUnion(const char* /* name */) {
40     return new CppSafeUnion();
41 }
42 
43 }  // namespace implementation
44 }  // namespace V1_0
45 }  // namespace cpp
46 }  // namespace safeunion
47 }  // namespace tests
48 }  // namespace hardware
49 }  // namespace android
50