{ "max_tx_time", "q" },
{ "max_rx_octets", "q"},
{ "max_rx_time", "q"})) },
+ { GDBUS_SIGNAL("IpspStateChanged",
+ GDBUS_ARGS({"connected","b"},{"if_name","s"}))},
};
#endif
void device_set_ipsp_connected(struct btd_device *device, gboolean connected,
const unsigned char *ifname)
{
+ char *iface_name = NULL;
+
if (device == NULL) {
error("device is NULL");
return;
memset(device->if_name, 0, sizeof(device->if_name));
memcpy(device->if_name, ifname, 16);
+ iface_name = device->if_name;
DBG("ipsp_connected %d", connected);
- DBG("ipsp_iface: %s is Up !", device->if_name);
+ DBG("ipsp_iface: %s is Up !", iface_name);
- g_dbus_emit_property_changed(dbus_conn, device->path,
- DEVICE_INTERFACE, "IpspConnected");
- g_dbus_emit_property_changed(dbus_conn, device->path,
- DEVICE_INTERFACE, "IpspBtInterfaceInfo");
+ g_dbus_emit_signal(dbus_conn, device->path,
+ DEVICE_INTERFACE, "IpspStateChanged",
+ DBUS_TYPE_BOOLEAN, &connected,
+ DBUS_TYPE_STRING, &iface_name,
+ DBUS_TYPE_INVALID);
}
+
void device_le_data_length_changed(struct btd_device *device, uint16_t max_tx_octets,
uint16_t max_tx_time, uint16_t max_rx_octets,uint16_t max_rx_time)
{