mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
ssm: Add getter for the device
In some cases it can be useful to be able to retrieve the device. Add the corresponding getter to do so.
This commit is contained in:
@@ -181,6 +181,22 @@ fpi_ssm_get_data (FpiSsm *machine)
|
||||
return machine->ssm_data;
|
||||
}
|
||||
|
||||
/**
|
||||
* fpi_ssm_get_device:
|
||||
* @machine: an #FpiSsm state machine
|
||||
*
|
||||
* Retrieve the device that the SSM is for.
|
||||
*
|
||||
* Returns: #FpDevice
|
||||
*/
|
||||
FpDevice *
|
||||
fpi_ssm_get_device (FpiSsm *machine)
|
||||
{
|
||||
g_return_val_if_fail (machine, NULL);
|
||||
|
||||
return machine->dev;
|
||||
}
|
||||
|
||||
static void
|
||||
fpi_ssm_clear_delayed_action (FpiSsm *machine)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user