mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-07 10:48:07 +02:00
linux: Name the iDevice start poll timeout
This commit is contained in:
parent
4b03777c54
commit
377dd73424
1 changed files with 5 additions and 2 deletions
|
|
@ -69,7 +69,7 @@ up_device_idevice_poll_cb (UpDeviceIdevice *idevice)
|
|||
}
|
||||
|
||||
static gboolean
|
||||
start_poll_cb (UpDeviceIdevice *idevice)
|
||||
up_device_idevice_start_poll_cb (UpDeviceIdevice *idevice)
|
||||
{
|
||||
UpDevice *device = UP_DEVICE (idevice);
|
||||
idevice_t dev = NULL;
|
||||
|
|
@ -160,7 +160,10 @@ up_device_idevice_coldplug (UpDevice *device)
|
|||
"has-history", TRUE,
|
||||
NULL);
|
||||
|
||||
idevice->priv->start_id = g_timeout_add_seconds (1, (GSourceFunc) start_poll_cb, idevice);
|
||||
idevice->priv->start_id = g_timeout_add_seconds (1, (GSourceFunc) up_device_idevice_start_poll_cb,
|
||||
idevice);
|
||||
g_source_set_name_by_id (idevice->priv->start_id,
|
||||
"[upower] up_device_idevice_start_poll_cb (linux)");
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue