From 0005b52b705634ae2b09470bb06df1128a870fb8 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 25 Jun 2012 01:25:00 +0200 Subject: [PATCH] Update uv_getaddrinfo_cb prototype. Make it clear that the first argument is a req, not a handle. --- include/uv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uv.h b/include/uv.h index fe87ea02..ff01f04f 100644 --- a/include/uv.h +++ b/include/uv.h @@ -300,11 +300,11 @@ typedef void (*uv_prepare_cb)(uv_prepare_t* handle, int status); typedef void (*uv_check_cb)(uv_check_t* handle, int status); typedef void (*uv_idle_cb)(uv_idle_t* handle, int status); typedef void (*uv_exit_cb)(uv_process_t*, int exit_status, int term_signal); +typedef void (*uv_walk_cb)(uv_handle_t* handle, void* arg); typedef void (*uv_fs_cb)(uv_fs_t* req); typedef void (*uv_work_cb)(uv_work_t* req); typedef void (*uv_after_work_cb)(uv_work_t* req); -typedef void (*uv_walk_cb)(uv_handle_t* handle, void* arg); -typedef void (*uv_getaddrinfo_cb)(uv_getaddrinfo_t* handle, +typedef void (*uv_getaddrinfo_cb)(uv_getaddrinfo_t* req, int status, struct addrinfo* res);