bool set_scan_rsp;
bool include_name;
bool include_txpower;
+#ifdef TIZEN_BT_HAL
+ bool include_appearance;
+#endif
uint16_t appearance;
char* manufacturer_data;
uint16_t manufacturer_data_len;
int attr_handle, int offset, int length,
bool need_rsp, bool is_prep, uint8_t* value);
+/**
+ * Callback invoked when a remote device has requested to acqiore write to a
+ * characteristic .
+ */
+typedef void (*request_acquire_write_callback)(int mtu, int conn_id, int trans_id,
+ int attr_handle, bt_bdaddr_t *bda);
+
+typedef void (*request_acquire_notify_callback)(int fd, int conn_id, int trans_id,
+ int attr_handle);
+
+
/** Callback invoked when a previously prepared write is to be executed */
typedef void (*request_exec_write_callback)(int conn_id, int trans_id,
bt_bdaddr_t *bda, int exec_write);
+
+
/**
* Callback triggered in response to send_response if the remote device
* sends a confirmation.
#ifdef TIZEN_BT_HAL
notification_enabled_callback notif_enabled_cb;
#endif
+ request_acquire_write_callback request_acquire_write_cb;
+ request_acquire_notify_callback request_acquire_notify_cb;
} btgatt_server_callbacks_t;
/** Represents the standard BT-GATT server interface. */
bt_status_t (*multi_adv_update)(int server_if, int min_interval, int max_interval, int adv_type,
int chnl_map, int tx_power, int timeout_s);
+ /* Set the filter_policy value in the HAL Layer */
+ bt_status_t (*set_filter_policy)(int filter_policy);
+
/* Setup the data for the specified instance */
bt_status_t (*multi_adv_set_inst_data)(btgatt_adv_param_setup_t adv_param_setup);
/* Get current att mtu size of active connection */
bt_status_t (*get_att_mtu)(int conn_id, int *mtu_size);
+
+ /** Send a response to a acquire write/notify operation */
+ bt_status_t (*send_response_acquire)(int conn_id, int trans_id,
+ int status, int fd, int mtu, void *);
} btgatt_server_interface_t;
__END_DECLS