memcpy(char_val.prop.uuid, chr_info->UUID, 16);
memcpy(char_val.value, buffer, len);
char_val.val_len = len;
- memcpy(char_val.address, chr_info->adress, 18);
+ memcpy(char_val.address, chr_info->address, 18);
event_info = _bt_event_get_cb_data(BT_GATT_CLIENT_EVENT);
chr_info->notify_fd = fd;
chr_info->id = id;
chr_info->mtu = mtu;
- g_strlcpy(chr_info->adress, address, 18);
+ g_strlcpy(chr_info->address, address, 18);
memcpy(chr_info->UUID, uuid, 16);
channel = g_io_channel_unix_new(fd);
bluetooth_gatt_server_acquire_write_info_t *write_data = (bluetooth_gatt_server_acquire_write_info_t*)data;
- BT_INFO("FD io write data received remote adress [%s]\n", write_data->adress);
+ BT_INFO("FD io write data received remote adress [%s]\n", write_data->address);
if (cond & G_IO_IN) {
GIOStatus status = G_IO_STATUS_NORMAL;
write_info.need_resp = false;
write_info.attribute_handle = write_data->attribute_handle;
//memcpy()
- _bt_convert_addr_string_to_type(write_info.device_address.addr, write_data->adress);
+ _bt_convert_addr_string_to_type(write_info.device_address.addr, write_data->address);
write_info.connection_id = write_data->connection_id;
write_info.offset = write_data->offset;
write_info.request_id = -2;
write_info->connection_id = tran_id;
write_info->offset = offset;
- memcpy(write_info->adress, addr , BLUETOOTH_ADDRESS_STRING_LENGTH);
+ memcpy(write_info->address, addr , BLUETOOTH_ADDRESS_STRING_LENGTH);
- BT_INFO("FD read %d remote adress [%s ] \n", pipefd[0], addr);
+ BT_INFO("FD read %d remote address [%s ] \n", pipefd[0], addr);
channel = g_io_channel_unix_new(pipefd[0]);
int id;
int mtu;
unsigned char UUID[16];
- char adress[BLUETOOTH_ADDRESS_STRING_LENGTH];
+ char address[BLUETOOTH_ADDRESS_STRING_LENGTH];
} bt_gatt_characteristic_notify_info_t;
_bt_hal_convert_device_path_to_address(dev_path, addr);
- DBG("remote adress %s", addr);
+ DBG("remote address %s", addr);
/* Check if device is already in connected list */
conn_info = __bt_find_remote_gatt_client_info(addr);
struct gatt_service_info *svc_info = NULL;
struct gatt_client_info_t *conn_info = NULL;
struct gatt_req_info *req_info = NULL;
- char * link = 0;
- int len = 0;
DBG("AcquireNotify");
DBG("Application path = %s", object_path);
struct gatt_req_info *req_info = NULL;
struct gatt_client_info_t *conn_info = NULL;
- int i;
DBG("GATT Server Send Response Conn ID [%d]", conn_id);
TEST(BluetoothHAL_test, adapter_set_name_p) {
int ret = OAL_STATUS_SUCCESS;
- ret = adapter_set_name("TizenHAL");
+ ret = adapter_set_name((char *)"TizenHAL");
ASSERT_TRUE(ret == OAL_STATUS_SUCCESS);
wait_for_async(TIMEOUT_500MILISECONDS);
oal_status_t avrcp_ct_prev_track(bt_address_t *device_address);
/**
+ * @brief Play volume up on the connected remote device.
+ *
+ * @return OAL_STATUS_SUCCESS on success, otherwise a non-zero error value.
+ * @retval #OAL_STATUS_SUCCESS Successful
+ *
+ * @pre A2DP Sink should be connected with a device.
+ * @pre AVRCP connection should exist with the device.
+ */
+oal_status_t avrcp_ct_volume_up(bt_address_t *device_address);
+
+/**
+ * @brief Play volume down on the connected remote device.
+ *
+ * @return OAL_STATUS_SUCCESS on success, otherwise a non-zero error value.
+ * @retval #OAL_STATUS_SUCCESS Successful
+ *
+ * @pre A2DP Sink should be connected with a device.
+ * @pre AVRCP connection should exist with the device.
+ */
+oal_status_t avrcp_ct_volume_down(bt_address_t *device_address);
+
+
+/**
* @brief Set media player properties to target device
*
* @remarks Target device will receive media player properties.
return BLUETOOTH_ERROR_NOT_CONNECTED;
#endif
- /* Convert BD adress from string type */
+ /* Convert BD address from string type */
_bt_convert_addr_string_to_type(device_address.addr, connected_address);
int value = BLUETOOTH_ERROR_NONE;
BT_DBG("Already connected headset addr [%s] connected headset type [0x%x] current dev conn type [0x%x]",
BT_ERR("sending acquire write respose sent \n ");
- fd_list_array = g_unix_fd_list_peek_fds(fd_list, &len);
+ fd_list_array = (int *)g_unix_fd_list_peek_fds(fd_list, &len);
BT_INFO("Num fds in fd_list is : %d, fd_list[0]: %d", len, fd_list_array[0]);
fd = fd_list_array[0];
BT_ERR("sending acquire write respose sent \n ");
- fd_list_array = g_unix_fd_list_peek_fds(fd_list, &len);
+ fd_list_array = (int *)g_unix_fd_list_peek_fds(fd_list, &len);
BT_INFO("Num fds in fd_list is : %d, fd_list[0]: %d", len, fd_list_array[0]);
fd = fd_list_array[0];
int result = BLUETOOTH_ERROR_NONE;
struct gatt_server_req_info *req_info = NULL;
bluetooth_device_address_t dev_addr;
- char adress[BT_ADDRESS_STRING_SIZE] = {'/0',};
+ char address[BT_ADDRESS_STRING_SIZE] = { 0 };
BT_INFO("GATT Server ACQUIRE Write Req Connection ID: [%d]", event->attr_trans.conn_id);
BT_INFO("GATT Server ACQUIRE Write Req Transaction ID:[%d]", event->attr_trans.trans_id);
BT_INFO("GATT Server ACQUIRE Write Req Attribute Handle: [%d]", event->attr_trans.attr_handle);
- //adress = g_malloc0(BT_ADDRESS_STRING_SIZE);
+ //address = g_malloc0(BT_ADDRESS_STRING_SIZE);
memcpy(dev_addr.addr, event->address.addr, 6);
req_info = g_new0(struct gatt_server_req_info, 1);
req_info->request_type = BLUETOOTH_GATT_REQUEST_TYPE_ACQUIRE_WRITE;
gatt_server_requests = g_slist_append(gatt_server_requests, req_info);
- _bt_convert_addr_type_to_string(adress,
+ _bt_convert_addr_type_to_string(address,
(unsigned char *)dev_addr.addr);
param = g_variant_new("(iiiiiis)", result,
event->attr_trans.conn_id,
event->attr_trans.trans_id,
event->attr_trans.attr_handle,
- event->mtu, event->attr_trans.offset, adress);
- BT_INFO("GATT Server ACQUIRE Write Req Attribute remote adress : [%s]", adress);
+ event->mtu, event->attr_trans.offset, address);
+ BT_INFO("GATT Server ACQUIRE Write Req Attribute remote address : [%s]", address);
_bt_send_event(BT_GATT_SERVER_EVENT,
BLUETOOTH_EVENT_GATT_SERVER_ACQUIRE_WRITE,
return BLUETOOTH_ERROR_NOT_CONNECTED;
#endif
- /* Convert BD adress from string type */
+ /* Convert BD address from string type */
_bt_convert_addr_string_to_type(device_address.addr, connected_address);
int value = BLUETOOTH_ERROR_NONE;
value = _bt_audio_disconnect(0, connected_device->type & type, &device_address, NULL);
if (connected) {
/* Match connected device address */
if (g_strcmp0(connected_address, address) != 0) {
- /* Convert BD adress from string type */
+ /* Convert BD address from string type */
_bt_convert_addr_string_to_type(
device_address.addr,
connected_address);
typedef struct {
unsigned char UUID[16];
- char adress[18];
+ char address[18];
char *val;
int len;
} bt_gatt_notify_req_t ;
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];
+ char address[BLUETOOTH_ADDRESS_STRING_LENGTH];
} bluetooth_gatt_server_acquire_write_info_t;;
addr = get_bd_from_file(BD_ADDR_FILE);
if (addr) {
- TC_PRT("Remote bd adress from file: %s", addr);
+ TC_PRT("Remote bd address from file: %s", addr);
convert_addr_string_to_addr_type(device_address, addr);
g_free(addr);
return;