ofono_debug("Registering oFono Agent to bluetooth daemon");
- if (!data->handsfree_path)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "RegisterAgent",
NULL, NULL, DBUS_TYPE_OBJECT_PATH,
ofono_debug("Unregistering oFono Agent from bluetooth daemon");
- if (!data->handsfree_path)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "UnregisterAgent",
NULL, NULL, DBUS_TYPE_OBJECT_PATH,
ofono_debug("Connect to bluetooth daemon");
- if (!data->handsfree_path || !connection)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "Connect",
NULL, NULL, DBUS_TYPE_INVALID);
{
struct hfp_data *data = ofono_modem_get_data(modem);
- if (!data->handsfree_path || !connection)
- return -EINVAL;
-
return send_method_call(BLUEZ_SERVICE, data->handsfree_path,
BLUEZ_GATEWAY_INTERFACE, "Disconnect",
NULL, NULL, DBUS_TYPE_INVALID);