}
void _bt_convert_addr_string_to_type_rev(unsigned char *addr,
- const char *address)
+ const char *address)
{
- int i;
- char *ptr = NULL;
+ int i;
+ char *ptr = NULL;
ret_if(address == NULL);
ret_if(addr == NULL);
- for (i = 0; i < 6; i++) {
- addr[5 - i] = strtol(address, &ptr, 16);
- if (ptr[0] != '\0') {
- if (ptr[0] != ':')
- return;
+ for (i = 0; i < 6; i++) {
+ addr[5 - i] = strtol(address, &ptr, 16);
+ if (ptr[0] != '\0') {
+ if (ptr[0] != ':')
+ return;
- address = ptr + 1;
- }
- }
+ address = ptr + 1;
+ }
+ }
}
static gboolean __bt_ag_check_nval(GIOChannel *chan)
#ifdef TIZEN_MEDIA_ENHANCE
typedef enum media_transport_state {
- MEDIA_TRANSPORT_STATE_DISCONNECTED,
- MEDIA_TRANSPORT_STATE_IDLE,
- MEDIA_TRANSPORT_STATE_PLAYING
+ MEDIA_TRANSPORT_STATE_DISCONNECTED,
+ MEDIA_TRANSPORT_STATE_IDLE,
+ MEDIA_TRANSPORT_STATE_PLAYING
} bt_ag_media_transport_state_t;
/* Profile states matched to btd_service_state_t of bluez service.h */
void _bt_convert_addr_string_to_type_rev(unsigned char *addr,
const char *address)
{
- int i;
- char *ptr = NULL;
+ int i;
+ char *ptr = NULL;
ret_if(address == NULL);
ret_if(addr == NULL);
- for (i = 0; i < 6; i++) {
- addr[5 - i] = strtol(address, &ptr, 16);
- if (ptr[0] != '\0') {
- if (ptr[0] != ':')
- return;
+ for (i = 0; i < 6; i++) {
+ addr[5 - i] = strtol(address, &ptr, 16);
+ if (ptr[0] != '\0') {
+ if (ptr[0] != ':')
+ return;
- address = ptr + 1;
- }
- }
+ address = ptr + 1;
+ }
+ }
}
static gboolean __bt_hf_agent_sco_accept(bt_hf_agent_info_t *bt_hf_info)