Exit when no devices are in use

When no actions are happening on any of the devices, make the
daemon exit after 30 seconds.
This commit is contained in:
Bastien Nocera
2008-11-03 15:00:31 +00:00
committed by Daniel Drake
parent e29806cd88
commit b0f2060628
3 changed files with 45 additions and 0 deletions

View File

@ -24,8 +24,10 @@
#include <dbus/dbus-glib.h>
/* General */
#define TIMEOUT 30
#define FPRINT_SERVICE_NAME "net.reactivated.Fprint"
extern DBusGConnection *fprintd_dbus_conn;
extern gboolean no_timeout;
GQuark fprint_error_quark(void);
/* Errors */