diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2017-05-17 07:17:47 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2017-05-17 07:17:47 +0000 |
commit | d9b1b2197f3b8cf8a3a5e9f6bec636824324a3fa (patch) | |
tree | 399beec8bc07e5c7bb82c42b52a6a943fdf227dc | |
parent | 4203e7ce4631c5dfec20815c4926cda44d211be2 (diff) | |
parent | cb7791b44231be633e38ce860b1a56de9cd704a5 (diff) | |
download | libhardware-d9b1b2197f3b8cf8a3a5e9f6bec636824324a3fa.tar.gz |
release-request-6c498b17-9310-412b-ad36-3dcf25ffef73-for-git_oc-release-4017086 snap-temp-L16500000064871237
Change-Id: I7106713158ba0782aecd92a49f29340e2f5af319
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | hardware.c | 4 | ||||
-rw-r--r-- | include/hardware/bt_gatt_client.h | 5 |
3 files changed, 9 insertions, 1 deletions
@@ -23,6 +23,7 @@ cc_library_shared { "libcutils", "liblog", "libdl", + "libvndksupport", ], cflags: ["-DQEMU_HARDWARE"], @@ -29,6 +29,8 @@ #define LOG_TAG "HAL" #include <log/log.h> +#include <vndksupport/linker.h> + /** Base path of the hal modules */ #if defined(__LP64__) #define HAL_LIBRARY_PATH1 "/system/lib64/hw" @@ -80,7 +82,7 @@ static int load(const char *id, * dlopen returns. Since RTLD_GLOBAL is not or'd in with * RTLD_NOW the external symbols will not be global */ - handle = dlopen(path, RTLD_NOW); + handle = android_load_sphal_library(path, RTLD_NOW); if (handle == NULL) { char const *err_str = dlerror(); ALOGE("load: module=%s\n%s", path, err_str?err_str:"unknown"); diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h index 33a6825f..154cb09e 100644 --- a/include/hardware/bt_gatt_client.h +++ b/include/hardware/bt_gatt_client.h @@ -223,6 +223,11 @@ typedef struct { */ bt_status_t (*search_service)(int conn_id, bt_uuid_t *filter_uuid ); + /** + * Sead "Find service by UUID" request. Used only for PTS tests. + */ + void (*btif_gattc_discover_service_by_uuid)(int conn_id, bt_uuid_t *uuid); + /** Read a characteristic on a remote device */ bt_status_t (*read_characteristic)(int conn_id, uint16_t handle, int auth_req); |