summaryrefslogtreecommitdiffstats
path: root/polyp/parseaddr.h
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/parseaddr.h')
-rw-r--r--polyp/parseaddr.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/polyp/parseaddr.h b/polyp/parseaddr.h
index 5ddc0351..f0efd766 100644
--- a/polyp/parseaddr.h
+++ b/polyp/parseaddr.h
@@ -24,19 +24,19 @@
#include <inttypes.h>
-enum pa_parsed_address_type {
+typedef enum pa_parsed_address_type {
PA_PARSED_ADDRESS_UNIX,
PA_PARSED_ADDRESS_TCP4,
PA_PARSED_ADDRESS_TCP6,
PA_PARSED_ADDRESS_TCP_AUTO
-};
+} pa_parsed_address_type;
-struct pa_parsed_address {
- enum pa_parsed_address_type type;
+typedef struct pa_parsed_address {
+ pa_parsed_address_type type;
char *path_or_host;
uint16_t port;
-};
+} pa_parsed_address;
-int pa_parse_address(const char *a, struct pa_parsed_address *ret_p);
+int pa_parse_address(const char *a, pa_parsed_address *ret_p);
#endif