BLE Gatt Server Socket write implemetation
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-gatt-server-api.h
index 33dafaa..0475c27 100644 (file)
@@ -41,6 +41,8 @@ typedef enum {
        BLUETOOTH_GATT_REQUEST_TYPE_READ = 0x00,       /* Read Requested */
        BLUETOOTH_GATT_REQUEST_TYPE_WRITE = 0x01,      /* Write Requested */
        BLUETOOTH_GATT_REQUEST_TYPE_EXEC_WRITE = 0x02, /* Exec Write Requested */
+       BLUETOOTH_GATT_REQUEST_TYPE_ACQUIRE_WRITE = 0x03,
+       BLUETOOTH_GATT_REQUEST_TYPE_ACQUIRE_NOTIFY = 0x04
 } bluetooth_gatt_att_request_type_e;
 
 /**
@@ -163,6 +165,18 @@ typedef struct {
 } bluetooth_gatt_server_write_requested_info_t;
 
 /**
+* GATT Server Write Requested Info
+*/
+typedef struct {
+       int connection_id;                              /** < GATT Server Connection ID */
+       int request_id;                                 /** < GATT Server Write Request ID */
+       int attribute_handle;                           /** < GATT Server Write att handle */
+       int offset;                             /** < GATT Server attribute offset */
+       char adress[BLUETOOTH_ADDRESS_STRING_LENGTH];
+} bluetooth_gatt_server_acquire_write_info_t;;
+
+
+/**
  * GATT Server Update Characteristic Value
  */
 typedef struct {
@@ -210,6 +224,16 @@ typedef struct {
 } bluetooth_gatt_server_response_params_t;
 
 /**
+ * GATT Server acquire response data
+ */
+typedef struct {
+       bluetooth_gatt_att_request_type_e req_type;
+       int request_id;
+       int fd;
+       int mtu;
+} bluetooth_gatt_server_acquire_response_params_t;
+
+/**
  * GATT Server Bluedroid Specific Permission Mask
  */
 typedef enum {