void _dbus_loop_remove_timeout (DBusLoop *loop, DBusTimeout *timeout, DBusTimeoutFunction function, void *data) { DBusList *link; link = _dbus_list_get_first_link (&loop->callbacks); while (link != NULL) { DBusList *next = _dbus_list_get_next_link (&loop->callbacks, link); Callback *this = link->data; if (this->type == CALLBACK_TIMEOUT && TIMEOUT_CALLBACK (this)->timeout == timeout && this->data == data && TIMEOUT_CALLBACK (this)->function == function) { remove_callback (loop, link); return; } link = next; } _dbus_warn ("could not find timeout %p function %p data %p to remove\n", timeout, (void *)function, data); }
void _dbus_loop_remove_watch (DBusLoop *loop, DBusWatch *watch, DBusWatchFunction function, void *data) { DBusList *link; link = _dbus_list_get_first_link (&loop->callbacks); while (link != NULL) { DBusList *next = _dbus_list_get_next_link (&loop->callbacks, link); Callback *this = link->data; if (this->type == CALLBACK_WATCH && WATCH_CALLBACK (this)->watch == watch && this->data == data && WATCH_CALLBACK (this)->function == function) { remove_callback (loop, link); return; } link = next; } _dbus_warn ("could not find watch %p function %p data %p to remove\n", watch, (void *)function, data); }
static void exit_pike_sendfile(struct object *o) { SF_DFPRINTF((stderr, "sendfile: Exiting...\n")); if (THIS->iovs) { free(THIS->iovs); THIS->iovs = NULL; } if (THIS->buffer) { free(THIS->buffer); THIS->buffer = NULL; } if (THIS->headers) { free_array(THIS->headers); THIS->headers = NULL; } if (THIS->trailers) { free_array(THIS->trailers); THIS->trailers = NULL; } if (THIS->from_file) { free_object(THIS->from_file); THIS->from_file = NULL; } if (THIS->to_file) { free_object(THIS->to_file); THIS->to_file = NULL; } if (THIS->args) { free_array(THIS->args); THIS->args = NULL; } if (THIS->self) { /* This can occur if Pike exits before the backend has started. */ free_object(THIS->self); THIS->self = NULL; } /* This is not required since this is a mapped variable. * /Hubbe * But we do it anyway for paranoia reasons. * /grubba 1999-10-14 */ free_svalue(&(THIS->callback)); THIS->callback.type = T_INT; THIS->callback.subtype = NUMBER_NUMBER; THIS->callback.u.integer = 0; if (THIS->backend_callback) { remove_callback (THIS->backend_callback); THIS->backend_callback = NULL; } }
void efsw_release(efsw_watcher watcher) { remove_callback(watcher); delete (efsw::FileWatcher*)watcher; }
void roadmap_pointer_unregister_drag_end (RoadMapPointerHandler handler) { remove_callback (DRAG_END, handler); }
void roadmap_pointer_unregister_drag_start (RoadMapPointerHandler handler) { remove_callback (DRAG_START, handler); }
void roadmap_pointer_unregister_drag_motion (RoadMapPointerHandler handler) { remove_callback (DRAG_MOTION, handler); }
void roadmap_pointer_unregister_released (RoadMapPointerHandler handler) { remove_callback (RELEASED, handler); }
void roadmap_pointer_unregister_pressed (RoadMapPointerHandler handler) { remove_callback (PRESSED, handler); }
void roadmap_pointer_unregister_double_click (RoadMapPointerHandler handler) { remove_callback (DOUBLE_CLICK, handler); }
void roadmap_pointer_unregister_long_click (RoadMapPointerHandler handler) { remove_callback (LONG_CLICK, handler); }
void roadmap_pointer_unregister_short_click (RoadMapPointerHandler handler) { remove_callback (SHORT_CLICK, handler); }