Merge \\"Vectors as parameters to GATT write/indicate (3/3)\\" am: f21a41a8c6
am: 6bd84560e9
Change-Id: I029209af2dd56712824e573b6a38be6088ced4e3
This commit is contained in:
commit
e6315cea90
2 changed files with 12 additions and 6 deletions
|
@ -19,9 +19,12 @@
|
|||
#define ANDROID_INCLUDE_BT_GATT_CLIENT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
#include "bt_gatt_types.h"
|
||||
#include "bt_common_types.h"
|
||||
|
||||
using std::vector;
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/**
|
||||
|
@ -304,16 +307,16 @@ typedef struct {
|
|||
|
||||
/** Write a remote characteristic */
|
||||
bt_status_t (*write_characteristic)(int conn_id, uint16_t handle,
|
||||
int write_type, int len, int auth_req,
|
||||
char* p_value);
|
||||
int write_type, int auth_req,
|
||||
vector<uint8_t> 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 write_type, int len,
|
||||
int auth_req, char* p_value);
|
||||
int write_type, int auth_req,
|
||||
vector<uint8_t> value);
|
||||
|
||||
/** Execute a prepared write operation */
|
||||
bt_status_t (*execute_write)(int conn_id, int execute);
|
||||
|
|
|
@ -19,9 +19,12 @@
|
|||
#define ANDROID_INCLUDE_BT_GATT_SERVER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <vector>
|
||||
|
||||
#include "bt_gatt_types.h"
|
||||
|
||||
using std::vector;
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/** GATT value type used in response to remote read requests */
|
||||
|
@ -182,8 +185,8 @@ typedef struct {
|
|||
|
||||
/** Send value indication to a remote device */
|
||||
bt_status_t (*send_indication)(int server_if, int attribute_handle,
|
||||
int conn_id, int len, int confirm,
|
||||
char* p_value);
|
||||
int conn_id, int confirm,
|
||||
vector<uint8_t> value);
|
||||
|
||||
/** Send a response to a read/write operation */
|
||||
bt_status_t (*send_response)(int conn_id, int trans_id,
|
||||
|
|
Loading…
Reference in a new issue