From 8ef34592a92b82146b62656de844929b89f0cfcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Sat, 28 Feb 2015 10:34:09 +0100 Subject: [PATCH] doc: document uv_getnameinfo_t.{host|service} Fixes: https://github.com/libuv/libuv/issues/182 PR-URL: https://github.com/libuv/libuv/pull/233 Reviewed-By: Tim Caswell --- docs/src/dns.rst | 12 ++++++++++++ include/uv.h | 1 + 2 files changed, 13 insertions(+) diff --git a/docs/src/dns.rst b/docs/src/dns.rst index 4fd2a3d9..1d881580 100644 --- a/docs/src/dns.rst +++ b/docs/src/dns.rst @@ -51,6 +51,18 @@ Public members Loop that started this getnameinfo request and where completion will be reported. Readonly. +.. c:member:: char[NI_MAXHOST] uv_getnameinfo_t.host + + Char array containing the resulting host. It's null terminated. + + .. versionchanged:: 1.3.0 the field is declared as public. + +.. c:member:: char[NI_MAXSERV] uv_getnameinfo_t.service + + Char array containing the resulting service. It's null terminated. + + .. versionchanged:: 1.3.0 the field is declared as public. + .. seealso:: The :c:type:`uv_req_t` members also apply. diff --git a/include/uv.h b/include/uv.h index 55f75218..bb1963ca 100644 --- a/include/uv.h +++ b/include/uv.h @@ -799,6 +799,7 @@ struct uv_getnameinfo_s { UV_REQ_FIELDS /* read-only */ uv_loop_t* loop; + /* host and service are marked as private, but they really aren't. */ UV_GETNAMEINFO_PRIVATE_FIELDS };