Fix the coverity issues
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / hardware / bt_gatt_server.h
index f8cd427..73df96c 100644 (file)
@@ -44,6 +44,9 @@ typedef struct {
        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;
@@ -127,10 +130,23 @@ typedef void (*request_write_callback)(int conn_id, int trans_id, bt_bdaddr_t *b
                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.
@@ -181,6 +197,8 @@ typedef struct {
 #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. */
@@ -253,6 +271,9 @@ typedef struct {
        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);
 
@@ -261,6 +282,10 @@ typedef struct {
 
        /* 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