blob: dcbd9d7df29554d5a3176215e38d1890a6d806eb [file] [log] [blame]
Steven Moreland55cb0142018-10-16 18:33:03 -07001/*
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
19namespace android {
20namespace hardware {
21namespace tests {
22namespace safeunion {
23namespace cpp {
24namespace V1_0 {
25namespace implementation {
26
27Return<void> CppSafeUnion::repeatPointerFmqSafeUnion(const ICppSafeUnion::PointerFmqSafeUnion& fmq,
28 repeatPointerFmqSafeUnion_cb _hidl_cb) {
29 _hidl_cb(fmq);
30 return Void();
31}
32
33Return<void> CppSafeUnion::repeatFmqSafeUnion(const ICppSafeUnion::FmqSafeUnion& fmq,
34 repeatFmqSafeUnion_cb _hidl_cb) {
35 _hidl_cb(fmq);
36 return Void();
37}
38
39ICppSafeUnion* 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