Change aio_oq_custom_writev's interface. Specifically, pass a void * instead of an int to the callback, and change the callback return type from ssize_t to int.