diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/grecs/sockaddr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/grecs/sockaddr.h b/include/grecs/sockaddr.h index c8a3de2..835f698 100644 --- a/include/grecs/sockaddr.h +++ b/include/grecs/sockaddr.h @@ -1,5 +1,5 @@ /* grecs - Gray's Extensible Configuration System -*- c -*- - Copyright (C) 2007-2016 Sergey Poznyakoff + Copyright (C) 2007-2017 Sergey Poznyakoff Grecs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -20,6 +20,7 @@ struct grecs_sockaddr { #if GRECS_SOCKADDR_LIST struct grecs_sockaddr *next; + char *str; #endif int len; struct sockaddr *sa; @@ -45,6 +46,7 @@ void grecs_sockaddr_free(struct grecs_sockaddr *p); int grecs_str_to_sockaddr(struct grecs_sockaddr **sap, const char *arg, struct grecs_sockaddr_hints *gh, grecs_locus_t const *locus); +char const *grecs_sockaddr_to_str(struct grecs_sockaddr *); #endif #define GRECS_INADDR_BYTES 16 |