X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..65bb0fff13f2099c2746d6b8c9ad2421e9419d07:/lib/client-common.c?ds=sidebyside diff --git a/lib/client-common.c b/lib/client-common.c index c2dfe02..e1fcce9 100644 --- a/lib/client-common.c +++ b/lib/client-common.c @@ -34,6 +34,12 @@ #include "client-common.h" #include "addr.h" +/** @brief Invoke a function with the connect address + * @param c Passed to callback + * @param function Function to call + * + * Calls @p function with the result of looking up the connect address. + */ int with_sockaddr(void *c, int (*function)(void *c, const struct sockaddr *sa,