ellzey/libevhtp — pull request #62 by gp (2012-10-22 17:54:24+00:00)
Title: Use evhtp_hook_generic_cb function pointer prototype when setting a hook

Right now, the `evhtp_set_hook()` takes a callback function of `void*` type. According to the C standard, a function pointer cannot be cast to a `void*`. I have defined a generic hook callback function pointer, `evhtp_hook_generic_cb`, and converted the `evhtp_set_hook()` signature to use that instead.

Note that this function prototype requires that a `evhtp_res` be returned, which causes a mismatch with the `evhtp_hook_err_cb` type (which returns `void`). Since the return value will be safely ignored in this case, I think this is of limited concern.

Existing uses should function exactly as they always have.