chiark / gitweb /
site: Explicitly track name resolution status
[secnet.git] / secnet.h
index 44b180f043d04baa27ac6cc8155f13cbc69067e6..647c94082b7b2d0afded05e40fa9cb7f6e79c219 100644 (file)
--- a/secnet.h
+++ b/secnet.h
@@ -344,6 +344,11 @@ struct comm_if {
     comm_addr_to_string_fn *addr_to_string;
 };
 
+static inline const char *comm_addr_to_string(const struct comm_addr *ca)
+{
+    return ca->comm->addr_to_string(ca->comm->st, ca);
+}
+
 /* LOG interface */
 
 #define LOG_MESSAGE_BUFLEN 1023