mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 12:23:34 +02:00
main: Improve comments on fprint manager creation
Explain why the manager creation is async better in both in the main file and in the manager itself
This commit is contained in:
@ -191,7 +191,7 @@ int main(int argc, char **argv)
|
|||||||
g_debug("Launching FprintObject");
|
g_debug("Launching FprintObject");
|
||||||
|
|
||||||
/* create the one instance of the Manager object to be shared between
|
/* create the one instance of the Manager object to be shared between
|
||||||
* all fprintd users */
|
* all fprintd users. This blocks until all the devices are enumerated */
|
||||||
manager = fprint_manager_new (no_timeout);
|
manager = fprint_manager_new (no_timeout);
|
||||||
|
|
||||||
/* Obtain the well-known name after the manager has been initialized.
|
/* Obtain the well-known name after the manager has been initialized.
|
||||||
|
|||||||
@ -174,7 +174,9 @@ fprint_manager_init (FprintManager *manager)
|
|||||||
manager,
|
manager,
|
||||||
G_CONNECT_SWAPPED);
|
G_CONNECT_SWAPPED);
|
||||||
|
|
||||||
/* Prepare everything by enumerating all devices. */
|
/* Prepare everything by enumerating all devices.
|
||||||
|
* This blocks the main loop until the existing devices are enumerated
|
||||||
|
*/
|
||||||
fp_context_enumerate (priv->context);
|
fp_context_enumerate (priv->context);
|
||||||
|
|
||||||
dbus_g_connection_register_g_object(fprintd_dbus_conn,
|
dbus_g_connection_register_g_object(fprintd_dbus_conn,
|
||||||
|
|||||||
Reference in New Issue
Block a user