From: DoHyun Pyun Date: Mon, 29 Aug 2016 08:05:59 +0000 (+0900) Subject: Modify the type name for gatt request X-Git-Tag: submit/tizen/20160907.050933~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7c2688c8e7d62252eeb08b16f059ee461f09094;p=platform%2Fcore%2Fapi%2Fbluetooth.git Modify the type name for gatt request Change-Id: Icd738d34aeef05ebd8c7c65aaba80a0a41f7b842 Signed-off-by: DoHyun Pyun --- diff --git a/include/mobile/bluetooth.h b/include/mobile/bluetooth.h index 538be67..8b4f0ac 100644 --- a/include/mobile/bluetooth.h +++ b/include/mobile/bluetooth.h @@ -5066,7 +5066,7 @@ int bt_gatt_server_start(void); * * @see bt_gatt_server_read_value_requested_cb() */ -int bt_gatt_server_send_response(int request_id, bluetooth_gatt_att_request_type_e request_type, +int bt_gatt_server_send_response(int request_id, bt_gatt_att_request_type_e request_type, int offset, int resp_status, char *value, int value_length); /** diff --git a/include/mobile/bluetooth_type.h b/include/mobile/bluetooth_type.h index e783de5..a7b6584 100644 --- a/include/mobile/bluetooth_type.h +++ b/include/mobile/bluetooth_type.h @@ -716,9 +716,9 @@ typedef enum { * @since_tizen 3.0 */ typedef enum { - BLUETOOTH_GATT_REQUEST_TYPE_READ = 0x00, /* Read Requested */ - BLUETOOTH_GATT_REQUEST_TYPE_WRITE = 0x01, /* Write Requested */ -} bluetooth_gatt_att_request_type_e; + BT_GATT_REQUEST_TYPE_READ = 0x00, /* Read Requested */ + BT_GATT_REQUEST_TYPE_WRITE = 0x01, /* Write Requested */ +} bt_gatt_att_request_type_e; /** * @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE diff --git a/include/tv/bluetooth.h b/include/tv/bluetooth.h index e727c23..f4b702e 100644 --- a/include/tv/bluetooth.h +++ b/include/tv/bluetooth.h @@ -5067,7 +5067,7 @@ int bt_gatt_server_start(void); * * @see bt_gatt_server_read_value_requested_cb() */ -int bt_gatt_server_send_response(int request_id, bluetooth_gatt_att_request_type_e request_type, +int bt_gatt_server_send_response(int request_id, bt_gatt_att_request_type_e request_type, int offset, int resp_status, char *value, int value_length); /** diff --git a/include/tv/bluetooth_type.h b/include/tv/bluetooth_type.h index e6aedcd..69c70a6 100644 --- a/include/tv/bluetooth_type.h +++ b/include/tv/bluetooth_type.h @@ -716,9 +716,9 @@ typedef enum { * @since_tizen 3.0 */ typedef enum { - BLUETOOTH_GATT_REQUEST_TYPE_READ = 0x00, /* Read Requested */ - BLUETOOTH_GATT_REQUEST_TYPE_WRITE = 0x01, /* Write Requested */ -} bluetooth_gatt_att_request_type_e; + BT_GATT_REQUEST_TYPE_READ = 0x00, /* Read Requested */ + BT_GATT_REQUEST_TYPE_WRITE = 0x01, /* Write Requested */ +} bt_gatt_att_request_type_e; /** * @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE diff --git a/include/wearable/bluetooth.h b/include/wearable/bluetooth.h index c280766..70a56c0 100644 --- a/include/wearable/bluetooth.h +++ b/include/wearable/bluetooth.h @@ -4718,7 +4718,7 @@ int bt_gatt_server_start(void); * * @see bt_gatt_server_read_value_requested_cb() */ -int bt_gatt_server_send_response(int request_id, bluetooth_gatt_att_request_type_e request_type, +int bt_gatt_server_send_response(int request_id, bt_gatt_att_request_type_e request_type, int offset, int resp_status, char *value, int value_length); /** diff --git a/include/wearable/bluetooth_type.h b/include/wearable/bluetooth_type.h index cc950c9..37d6a86 100644 --- a/include/wearable/bluetooth_type.h +++ b/include/wearable/bluetooth_type.h @@ -715,9 +715,9 @@ typedef enum { * @since_tizen 3.0 */ typedef enum { - BLUETOOTH_GATT_REQUEST_TYPE_READ = 0x00, /* Read Requested */ - BLUETOOTH_GATT_REQUEST_TYPE_WRITE = 0x01, /* Write Requested */ -} bluetooth_gatt_att_request_type_e; + BT_GATT_REQUEST_TYPE_READ = 0x00, /* Read Requested */ + BT_GATT_REQUEST_TYPE_WRITE = 0x01, /* Write Requested */ +} bt_gatt_att_request_type_e; /** * @ingroup CAPI_NETWORK_BLUETOOTH_PAN_PANU_MODULE diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index b9eee1f..9881f8c 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -2577,13 +2577,13 @@ int bt_gatt_server_start(void) return ret; } -int bt_gatt_server_send_response(int request_id, bluetooth_gatt_att_request_type_e request_type, +int bt_gatt_server_send_response(int request_id, bt_gatt_att_request_type_e request_type, int offset, int resp_status, char *value, int value_length) { int ret = BT_ERROR_NONE; BT_CHECK_INIT_STATUS(); - if (request_type == BLUETOOTH_GATT_REQUEST_TYPE_READ && + if (request_type == BT_GATT_REQUEST_TYPE_READ && resp_status == BT_ERROR_NONE) { BT_CHECK_INPUT_PARAMETER(value);