chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more testing
[disorder]
/
lib
/
client-common.c
diff --git
a/lib/client-common.c
b/lib/client-common.c
index c2dfe026f0f92d0c50b969d76b138f8db8dc5465..e1fcce9eb59dba1d820ddcb2ef1c1ba3e358269e 100644
(file)
--- a/
lib/client-common.c
+++ b/
lib/client-common.c
@@
-34,6
+34,12
@@
#include "client-common.h"
#include "addr.h"
#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,
int with_sockaddr(void *c,
int (*function)(void *c,
const struct sockaddr *sa,