| 1 | /* |
| 2 | * Copyright (C) 2013 Canonical Ltd |
| 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 | * Authored by: Michael Frey <michael.frey@canonical.com> |
| 17 | * Ricardo Salveti de Araujo <ricardo.salveti@canonical.com> |
| 18 | */ |
| 19 | |
| 20 | #include <dlfcn.h> |
| 21 | #include <stddef.h> |
| 22 | #include <stdbool.h> |
| 23 | |
| 24 | #include <hybris/internal/binding.h> |
| 25 | #include <hybris/input/input_stack_compatibility_layer.h> |
| 26 | |
| 27 | #define COMPAT_LIBRARY_PATH "/system/lib/libis_compat_layer.so" |
| 28 | |
| 29 | HYBRIS_LIBRARY_INITIALIZE(is, COMPAT_LIBRARY_PATH); |
| 30 | |
| 31 | HYBRIS_IMPLEMENT_VOID_FUNCTION2(is, android_input_stack_initialize, |
| 32 | struct AndroidEventListener*, struct InputStackConfiguration*); |
| 33 | HYBRIS_IMPLEMENT_VOID_FUNCTION0(is, android_input_stack_start); |
| 34 | HYBRIS_IMPLEMENT_VOID_FUNCTION1(is, android_input_stack_start_waiting_for_flag, bool*); |
| 35 | HYBRIS_IMPLEMENT_VOID_FUNCTION0(is, android_input_stack_stop); |
| 36 | HYBRIS_IMPLEMENT_VOID_FUNCTION0(is, android_input_stack_shutdown); |