Lines Matching defs:timeout_list
196 DBusTimeoutList *timeout_list;
198 timeout_list = dbus_new0 (DBusTimeoutList, 1);
199 if (timeout_list == NULL)
202 return timeout_list;
208 * @param timeout_list the timeout list.
211 _dbus_timeout_list_free (DBusTimeoutList *timeout_list)
214 _dbus_timeout_list_set_functions (timeout_list,
217 _dbus_list_foreach (&timeout_list->timeouts,
220 _dbus_list_clear (&timeout_list->timeouts);
222 dbus_free (timeout_list);
229 * @param timeout_list the timeout list
239 _dbus_timeout_list_set_functions (DBusTimeoutList *timeout_list,
251 link = _dbus_list_get_first_link (&timeout_list->timeouts);
254 DBusList *next = _dbus_list_get_next_link (&timeout_list->timeouts,
262 link2 = _dbus_list_get_first_link (&timeout_list->timeouts);
265 DBusList *next = _dbus_list_get_next_link (&timeout_list->timeouts,
282 if (timeout_list->remove_timeout_function != NULL)
284 _dbus_list_foreach (&timeout_list->timeouts,
285 (DBusForeachFunction) timeout_list->remove_timeout_function,
286 timeout_list->timeout_data);
289 if (timeout_list->timeout_free_data_function != NULL)
290 (* timeout_list->timeout_free_data_function) (timeout_list->timeout_data);
292 timeout_list->add_timeout_function = add_function;
293 timeout_list->remove_timeout_function = remove_function;
294 timeout_list->timeout_toggled_function = toggled_function;
295 timeout_list->timeout_data = data;
296 timeout_list->timeout_free_data_function = free_data_function;
305 * @param timeout_list the timeout list.
310 _dbus_timeout_list_add_timeout (DBusTimeoutList *timeout_list,
313 if (!_dbus_list_append (&timeout_list->timeouts, timeout))
318 if (timeout_list->add_timeout_function != NULL)
320 if (!(* timeout_list->add_timeout_function) (timeout,
321 timeout_list->timeout_data))
323 _dbus_list_remove_last (&timeout_list->timeouts, timeout);
336 * @param timeout_list the timeout list.
340 _dbus_timeout_list_remove_timeout (DBusTimeoutList *timeout_list,
343 if (!_dbus_list_remove (&timeout_list->timeouts, timeout))
346 if (timeout_list->remove_timeout_function != NULL)
347 (* timeout_list->remove_timeout_function) (timeout,
348 timeout_list->timeout_data);
357 * @param timeout_list the timeout list.
362 _dbus_timeout_list_toggle_timeout (DBusTimeoutList *timeout_list,
373 if (timeout_list->timeout_toggled_function != NULL)
374 (* timeout_list->timeout_toggled_function) (timeout,
375 timeout_list->timeout_data);