[vlc-devel] commit: documentation ( Rémi Denis-Courmont )

git version control git at videolan.org
Thu Oct 30 22:04:07 CET 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Oct 30 23:03:52 2008 +0200| [d329a269c737c185d19b02597e9f26daa9b77f5e] | committer: Rémi Denis-Courmont 

documentation

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d329a269c737c185d19b02597e9f26daa9b77f5e
---

 src/network/getaddrinfo.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/network/getaddrinfo.c b/src/network/getaddrinfo.c
index ac2d67b..efdb4e1 100644
--- a/src/network/getaddrinfo.c
+++ b/src/network/getaddrinfo.c
@@ -563,6 +563,18 @@ int vlc_getnameinfo( const struct sockaddr *sa, int salen,
 }
 
 
+/**
+ * Resolves a host name to a list of socket addresses (like getaddrinfo()).
+ *
+ * @param p_this a VLC object
+ * @param node host name to resolve (encoded as UTF-8), or NULL
+ * @param i_port port number for the socket addresses
+ * @param p_hints parameters (see getaddrinfo() manual page)
+ * @param res pointer set to the resulting chained list.
+ * @return 0 on success, a getaddrinfo() error otherwise.
+ * On failure, *res is undefined. On success, it must be freed with
+ * vlc_freeaddrinfo().
+ */
 int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
                      int i_port, const struct addrinfo *p_hints,
                      struct addrinfo **res )




More information about the vlc-devel mailing list