From 44d57d4c186a91fe6407d5ac357d2a84a3b2fa1b Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov Date: Fri, 9 Dec 2016 17:55:30 -0800 Subject: [PATCH] Replace usage of "vector<>" with "std::vector<>" This change is needed so we can remove the last instances of "using std::vector" statements in hardware/libhardware. Test: code compilation Change-Id: Id728867f6b2e154a01ef56bda93d48def71b0e47 --- include/hardware/bt_gatt_client.h | 6 ++---- include/hardware/bt_gatt_server.h | 10 ++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h index 6c5a85ec..43228523 100644 --- a/include/hardware/bt_gatt_client.h +++ b/include/hardware/bt_gatt_client.h @@ -23,8 +23,6 @@ #include "bt_gatt_types.h" #include "bt_common_types.h" -using std::vector; - __BEGIN_DECLS /** @@ -238,14 +236,14 @@ typedef struct { /** Write a remote characteristic */ bt_status_t (*write_characteristic)(int conn_id, uint16_t handle, int write_type, int auth_req, - vector value); + std::vector value); /** Read the descriptor for a given characteristic */ bt_status_t (*read_descriptor)(int conn_id, uint16_t handle, int auth_req); /** Write a remote descriptor for a given characteristic */ bt_status_t (*write_descriptor)( int conn_id, uint16_t handle, - int auth_req, vector value); + int auth_req, std::vector value); /** Execute a prepared write operation */ bt_status_t (*execute_write)(int conn_id, int execute); diff --git a/include/hardware/bt_gatt_server.h b/include/hardware/bt_gatt_server.h index 92af285e..b105cba3 100644 --- a/include/hardware/bt_gatt_server.h +++ b/include/hardware/bt_gatt_server.h @@ -23,8 +23,6 @@ #include "bt_gatt_types.h" -using std::vector; - __BEGIN_DECLS /** GATT value type used in response to remote read requests */ @@ -56,7 +54,7 @@ typedef void (*connection_callback)(int conn_id, int server_if, int connected, /** Callback invoked in response to create_service */ typedef void (*service_added_callback)(int status, int server_if, - vector service); + std::vector service); /** Callback invoked in response to stop_service */ typedef void (*service_stopped_callback)(int status, int server_if, @@ -79,7 +77,7 @@ typedef void (*request_read_callback)(int conn_id, int trans_id, bt_bdaddr_t *bd */ typedef void (*request_write_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, bool need_rsp, - bool is_prep, vector value); + bool is_prep, std::vector value); /** Callback invoked when a previously prepared write is to be executed */ typedef void (*request_exec_write_callback)(int conn_id, int trans_id, @@ -141,7 +139,7 @@ typedef struct { int conn_id ); /** Create a new service */ - bt_status_t (*add_service)(int server_if, vector service); + bt_status_t (*add_service)(int server_if, std::vector service); /** Stops a local service */ bt_status_t (*stop_service)(int server_if, int service_handle); @@ -152,7 +150,7 @@ typedef struct { /** Send value indication to a remote device */ bt_status_t (*send_indication)(int server_if, int attribute_handle, int conn_id, int confirm, - vector value); + std::vector value); /** Send a response to a read/write operation */ bt_status_t (*send_response)(int conn_id, int trans_id,