record_id = rec->handle;
ipc_register(HAL_SERVICE_ID_A2DP, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
return true;
}
DBG("");
ipc_register(HAL_SERVICE_ID_BLUETOOTH, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
}
void bt_bluetooth_unregister(void)
}
ipc_register(HAL_SERVICE_ID_HIDHOST, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
return true;
}
start_sdp_server(0, 0);
ipc_register(HAL_SERVICE_ID_CORE, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
DBG("Entering main loop");
}
ipc_register(HAL_SERVICE_ID_PAN, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
return true;
}
bacpy(&adapter_addr, addr);
ipc_register(HAL_SERVICE_ID_SOCK, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
}
void bt_socket_unregister(void)