1 /***************************************************************************** 2 * Copyright ©2017-2019 Gemalto – a Thales Company. All rights Reserved. 3 * 4 * This copy is 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 * http://www.apache.org/licenses/LICENSE-2.0 or https://www.apache.org/licenses/LICENSE-2.0.html 8 * 9 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 * See the License for the specific language governing permissions and limitations under the License. 11 12 ****************************************************************************/ 13 #ifndef ANDROID_HARDWARE_SECURE_ELEMENT_V1_0_SECUREELEMENTHALCALLBACK_H 14 #define ANDROID_HARDWARE_SECURE_ELEMENT_V1_0_SECUREELEMENTHALCALLBACK_H 15 16 #include <android/hardware/secure_element/1.0/ISecureElementHalCallback.h> 17 #include <hidl/MQDescriptor.h> 18 #include <hidl/Status.h> 19 20 namespace android { 21 namespace hardware { 22 namespace secure_element { 23 namespace V1_0 { 24 namespace implementation { 25 26 using ::android::hardware::hidl_array; 27 using ::android::hardware::hidl_memory; 28 using ::android::hardware::hidl_string; 29 using ::android::hardware::hidl_vec; 30 using ::android::hardware::Return; 31 using ::android::hardware::Void; 32 using ::android::sp; 33 34 struct SecureElementHalCallback : public ISecureElementHalCallback { 35 // Methods from ::android::hardware::secure_element::V1_0::ISecureElementHalCallback follow. 36 Return<void> onStateChange(bool connected) override; 37 38 // Methods from ::android::hidl::base::V1_0::IBase follow. 39 40 }; 41 42 // FIXME: most likely delete, this is only for passthrough implementations 43 // extern "C" ISecureElementHalCallback* HIDL_FETCH_ISecureElementHalCallback(const char* name); 44 45 } // namespace implementation 46 } // namespace V1_0 47 } // namespace secure_element 48 } // namespace hardware 49 } // namespace android 50 51 #endif // ANDROID_HARDWARE_SECURE_ELEMENT_V1_0_SECUREELEMENTHALCALLBACK_H 52