| Top |
| FpContext * | fp_context_new () |
| void | fp_context_enumerate () |
| GPtrArray * | fp_context_get_devices () |
The FpContext allows you to discover fingerprint scanning hardware. This is the starting point when integrating libfprint into your software.
The device-added and device-removed signals allow you to handle devices that may be hotplugged at runtime.
void
fp_context_enumerate (FpContext *context);
Enumerate all devices. You should call this function exactly once at startup. Please note that it iterates the mainloop until all devices are enumerated.
GPtrArray *
fp_context_get_devices (FpContext *context);
Get all devices. fp_context_enumerate() will be called as needed.
struct FpContextClass {
GObjectClass parent_class;
void (*device_added) (FpContext *context,
FpDevice *device);
void (*device_removed) (FpContext *context,
FpDevice *device);
};
Class structure for FpContext instances.
“device-added” signalvoid user_function (FpContext *context, FpDevice *device, gpointer user_data)
This signal is emitted when a fingerprint reader is added.
Flags: Run Last
“device-removed” signalvoid user_function (FpContext *context, FpDevice *device, gpointer user_data)
This signal is emitted when a fingerprint reader is removed.
It is guaranteed that the device has been closed before this signal is emitted. See the FpDevice removed signal documentation for more information.
Flags: Run Last