{
DBusGProxy *adapter_proxy;
- BT_CHECK_PARAMETER(bonding_info);
- BT_CHECK_PARAMETER(bonding_info->addr);
+ BT_CHECK_PARAMETER(bonding_info, return);
+ BT_CHECK_PARAMETER(bonding_info->addr, return);
adapter_proxy = _bt_get_adapter_proxy();
retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
GError *err = NULL;
char *device_path = NULL;
- BT_CHECK_PARAMETER(bonding_info);
- BT_CHECK_PARAMETER(bonding_info->addr);
+ BT_CHECK_PARAMETER(bonding_info, return);
+ BT_CHECK_PARAMETER(bonding_info->addr, return);
adapter_proxy = _bt_get_adapter_proxy();
retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
DBusGProxy *adapter_proxy;
GError *err = NULL;
- BT_CHECK_PARAMETER(bonding_info);
- BT_CHECK_PARAMETER(bonding_info->addr);
+ BT_CHECK_PARAMETER(bonding_info, return);
+ BT_CHECK_PARAMETER(bonding_info->addr, return);
adapter_proxy = _bt_get_adapter_proxy();
retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
if (bonding_info == NULL) {
/* Send reply */
BT_ERR("bonding_info == NULL");
- goto done;
+ if (err)
+ g_error_free(err);
+ return;
}
req_info = _bt_get_request_info(bonding_info->req_id);
void *agent;
bluetooth_device_info_t dev_info;
- BT_CHECK_PARAMETER(device_address);
+ BT_CHECK_PARAMETER(device_address, return);
if (bonding_info) {
BT_ERR("Bonding in progress");
int result = BLUETOOTH_ERROR_INTERNAL;
bluetooth_device_info_t dev_info;
- BT_CHECK_PARAMETER(device_address);
+ BT_CHECK_PARAMETER(device_address, return);
adapter_proxy = _bt_get_adapter_proxy();
retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
DBusGConnection *conn;
int result = BLUETOOTH_ERROR_INTERNAL;
- BT_CHECK_PARAMETER(device_address);
+ BT_CHECK_PARAMETER(device_address, return);
if (searching_info) {
BT_ERR("Service searching in progress");
GValue name = { 0 };
DBusGConnection *conn;
- BT_CHECK_PARAMETER(device_address);
- BT_CHECK_PARAMETER(alias);
+ BT_CHECK_PARAMETER(device_address, return);
+ BT_CHECK_PARAMETER(alias, return);
adapter_proxy = _bt_get_adapter_proxy();
retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);
DBusGConnection *conn;
int ret = BLUETOOTH_ERROR_NONE;
- BT_CHECK_PARAMETER(device_address);
+ BT_CHECK_PARAMETER(device_address, return);
adapter_proxy = _bt_get_adapter_proxy();
retv_if(adapter_proxy == NULL, BLUETOOTH_ERROR_INTERNAL);