blob: a128273ef037f2a791abb993ec9282434819a903 [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#pragma once
18
19#include <android/hardware/tests/safeunion/cpp/1.0/ICppSafeUnion.h>
20#include <hidl/MQDescriptor.h>
21#include <hidl/Status.h>
22
23namespace android {
24namespace hardware {
25namespace tests {
26namespace safeunion {
27namespace cpp {
28namespace V1_0 {
29namespace implementation {
30
31using ::android::sp;
32using ::android::hardware::hidl_array;
33using ::android::hardware::hidl_memory;
34using ::android::hardware::hidl_string;
35using ::android::hardware::hidl_vec;
36using ::android::hardware::Return;
37using ::android::hardware::Void;
38
39struct CppSafeUnion : public ICppSafeUnion {
40 Return<void> repeatPointerFmqSafeUnion(const ICppSafeUnion::PointerFmqSafeUnion& fmq,
41 repeatPointerFmqSafeUnion_cb _hidl_cb) override;
42 Return<void> repeatFmqSafeUnion(const ICppSafeUnion::FmqSafeUnion& fmq,
43 repeatFmqSafeUnion_cb _hidl_cb) override;
44};
45
46extern "C" ICppSafeUnion* HIDL_FETCH_ICppSafeUnion(const char* name);
47
48} // namespace implementation
49} // namespace V1_0
50} // namespace cpp
51} // namespace safeunion
52} // namespace tests
53} // namespace hardware
54} // namespace android