Commit 0b92ba57 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Simplified the API of the callback functions. Pass a pointer to the

isc_scb instead of a user-supplied pointer to the callback.
parent 044a2de2
2003-08-04 Per Cederqvist <ceder@ceder.dyndns.org>
Simplified the API of the callback functions. Pass a pointer to
the isc_scb instead of a user-supplied pointer to the callback.
* src/isc.h (isc_accept_callback): Removed the cb_mcb argument.
(isc_write_error_cb): Removed the cb_mcb and user arguments.
(isc_stale_output_cb): Ditto.
(isc_set_read_callback): Removed the user argument. Use the udg
field of the isc_scb instead.
* src/intern.h (struct isc_scb_internal): Removed
data_available_user.
* src/isc_tcp.c (isc_accept_cb): Adjusted to the new API of the
callback functions.
* src/isc_session.c (isc_create): Don't set data_available_user,
which has been removed.
(stale_cb): Adjusted to the new API of the callback functions.
(idle_cb): Ditto.
(isc_set_read_callback): Removed the user argument.
(isc_check_read_callback): Pass the isc_scb object instead of the
user-supplied pointer to the on_fd.
* src/isc_output.c (isc_oflush): Adjusted to the new API of the
callback functions.
2003-08-03 Per Cederqvist <ceder@ceder.dyndns.org>
Code cleanup. At the same time a micro-optimization was done: get
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment