Handle GATT operations for OTP
[platform/core/connectivity/bluetooth-frwk.git] / include / bluetooth-api.h
index c35f4dd..3eab8cb 100644 (file)
@@ -506,6 +506,15 @@ typedef struct {
 } bluetooth_tds_transport_data_info_t;
 
 /**
+* Structure to hold the OTP response data from remote OTP server
+*/
+typedef struct {
+       char *handle;      /**< Handle */
+       int data_length;                        /**< Data length */
+       char *data;                             /**< Read data */
+} bluetooth_otp_resp_info_t;
+
+/**
 * Advertising parameters
 */
 typedef struct {
@@ -822,6 +831,8 @@ typedef enum {
        BLUETOOTH_EVENT_TDS_ACTIVATION_INDICATION,    /** TDS Activation Indication from Provider */
 
        BLUETOOTH_EVENT_OTP_SERVER_STATE_CHANGED,       /* OTP Server Status **/
+       BLUETOOTH_EVENT_OTP_READ_CHAR_VAL,      /* OTP Read Value Response */
+       BLUETOOTH_EVENT_OTP_NOTIFICATION_ENABLED,       /* OTP Notification Enabled Response */
 } bluetooth_event_type_t;
 
  /**
@@ -7569,6 +7580,10 @@ int bluetooth_otp_server_init(const char *directory);
  */
 int bluetooth_otp_server_deinit();
 
+int bluetooth_otp_enable_notification(const char *handle);
+
+int bluetooth_otp_read_characteristic_value(const char *handle);
+
 /**
  * @}
  */