diff options
author | 2015-07-08 15:47:39 -0700 | |
---|---|---|
committer | 2015-07-22 18:29:44 -0700 | |
commit | 6aa7dc21c3778a4c0cf50c9eae18aa08cc38642c (patch) | |
tree | 5de08ac2d5806400587354f93f2d25bb3480d482 /system/service/host.cpp | |
parent | 445e3bed56d167669db88300716120d8af2cc5ed (diff) |
gn-build: Add bluetooth-service target
This patch makes the Bluetooth system service (service/) buildable using GN:
1. Added new BUILD.gn file for service/
2. Added conditional compilation for global config paths, with TODOs for
generalizing them later.
3. Added a shim for loading the Bluetooth library that calls hw_get_module on
Android and explicitly calls dlopen on OS_GENERIC.
4. Fixed compile warnings and errors.
5. Did some minor clean up in gatt_server.cpp for better readability.
Bug: 22124644
Change-Id: I3226537a3a5211a6762651a35707638df29956b0
Diffstat (limited to 'system/service/host.cpp')
-rw-r--r-- | system/service/host.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/system/service/host.cpp b/system/service/host.cpp index a6bc375228..af3c2c5d4c 100644 --- a/system/service/host.cpp +++ b/system/service/host.cpp @@ -26,12 +26,12 @@ #include <algorithm> +#include <base/base64.h> +#include <base/strings/string_number_conversions.h> +#include <base/strings/string_split.h> + #define LOG_TAG "bt_bluetooth_host" #include "osi/include/log.h" - -#include "base/base64.h" -#include "base/strings/string_number_conversions.h" -#include "base/strings/string_split.h" #include "core_stack.h" #include "gatt_server.h" #include "uuid.h" @@ -178,7 +178,7 @@ bool Host::OnSetAdvertisement(const std::string& service_uuid, const std::string& advertise_uuids, const std::string& advertise_data, const std::string& transmit_name) { - LOG_INFO("%s: service:%s uuids:%s data:%s", __func__, service_uuid.c_str(), + LOG_INFO(LOG_TAG, "%s: service:%s uuids:%s data:%s", __func__, service_uuid.c_str(), advertise_uuids.c_str(), advertise_data.c_str()); std::vector<std::string> advertise_uuid_tokens; @@ -232,7 +232,7 @@ bool Host::OnMessage() { LOG_ERROR(LOG_TAG, "Error reading datagram size: %s", strerror(errno)); return false; } else if (0 == size) { - LOG_INFO("%s:%d: Connection closed", __func__, __LINE__); + LOG_INFO(LOG_TAG, "%s:%d: Connection closed", __func__, __LINE__); return false; } @@ -242,7 +242,7 @@ bool Host::OnMessage() { LOG_ERROR(LOG_TAG, "Error reading IPC: %s", strerror(errno)); return false; } else if (0 == size) { - LOG_INFO("%s:%d: Connection closed", __func__, __LINE__); + LOG_INFO(LOG_TAG, "%s:%d: Connection closed", __func__, __LINE__); return false; } |