Lines Matching defs:timeout
159 DBusTimeout *timeout = sock_ctx;
160 dbus_timeout_handle(timeout);
164 static dbus_bool_t add_timeout(DBusTimeout *timeout, void *data)
168 if (!dbus_timeout_get_enabled(timeout))
171 eloop_register_timeout(0, dbus_timeout_get_interval(timeout) * 1000,
172 process_timeout, priv, timeout);
174 dbus_timeout_set_data(timeout, priv, NULL);
180 static void remove_timeout(DBusTimeout *timeout, void *data)
184 eloop_cancel_timeout(process_timeout, priv, timeout);
185 dbus_timeout_set_data(timeout, NULL, NULL);
189 static void timeout_toggled(DBusTimeout *timeout, void *data)
191 if (dbus_timeout_get_enabled(timeout))
192 add_timeout(timeout, data);
194 remove_timeout(timeout, data);