1/* 2 * Copyright 2017, 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#ifndef ANDROID_HARDWARE_MEDIA_OMX_V1_0_OMXSTORE_H 18#define ANDROID_HARDWARE_MEDIA_OMX_V1_0_OMXSTORE_H 19 20#include <hidl/MQDescriptor.h> 21#include <hidl/Status.h> 22 23#include <android/hardware/media/omx/1.0/IOmxStore.h> 24 25namespace android { 26namespace hardware { 27namespace media { 28namespace omx { 29namespace V1_0 { 30namespace implementation { 31 32using ::android::hardware::media::omx::V1_0::IOmxStore; 33using ::android::hardware::media::omx::V1_0::IOmx; 34using ::android::hardware::media::omx::V1_0::Status; 35using ::android::hidl::base::V1_0::IBase; 36using ::android::hardware::hidl_string; 37using ::android::hardware::hidl_vec; 38using ::android::hardware::Return; 39using ::android::hardware::Void; 40using ::android::sp; 41using ::android::wp; 42 43struct OmxStore : public IOmxStore { 44 OmxStore(); 45 virtual ~OmxStore(); 46 47 // Methods from IOmx 48 Return<void> listServiceAttributes(listServiceAttributes_cb) override; 49 Return<void> getNodePrefix(getNodePrefix_cb) override; 50 Return<void> listRoles(listRoles_cb) override; 51 Return<sp<IOmx>> getOmx(hidl_string const&) override; 52}; 53 54extern "C" IOmxStore* HIDL_FETCH_IOmxStore(const char* name); 55 56} // namespace implementation 57} // namespace V1_0 58} // namespace omx 59} // namespace media 60} // namespace hardware 61} // namespace android 62 63#endif // ANDROID_HARDWARE_MEDIA_OMX_V1_0_OMXSTORE_H 64