Move bt_bdaddr_t operator to global header file
This is to simplify bt_bdaddr_t handling
Test: compilation
Change-Id: I06ac6c2f0402ed13a2c04f86494d3c4fd0165963
diff --git a/service/gatt_server.cc b/service/gatt_server.cc
index e4a6ec5..79d9c35 100644
--- a/service/gatt_server.cc
+++ b/service/gatt_server.cc
@@ -18,24 +18,13 @@
#include "service/common/bluetooth/util/address_helper.h"
#include "service/logging_helpers.h"
+#include "stack/include/bt_types.h"
using std::lock_guard;
using std::mutex;
namespace bluetooth {
-namespace {
-
-bool operator==(const bt_bdaddr_t& lhs, const bt_bdaddr_t& rhs) {
- return memcmp(&lhs, &rhs, sizeof(lhs)) == 0;
-}
-
-bool operator!=(const bt_bdaddr_t& lhs, const bt_bdaddr_t& rhs) {
- return !(lhs == rhs);
-}
-
-} // namespace
-
// GattServer implementation
// ========================================================