diff options
author | Omar Polo <op@omarpolo.com> | 2021-12-29 19:24:33 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-12-29 19:24:33 +0000 |
commit | 054387bb26e75cef12e8dc0f531e7ee42614edd7 (patch) | |
tree | 165862732f7dacd05fe60246a151e4d264709fcf /gmid.h | |
parent | a62c63f2614297bc8973e6613a5cf25dc1697ce1 (diff) |
move struct iri and parser at the top of the file
Diffstat (limited to 'gmid.h')
-rw-r--r-- | gmid.h | 32 |
1 files changed, 16 insertions, 16 deletions
@@ -72,6 +72,22 @@ #define FCGI_MAX 32 #define PROC_MAX 16 +struct iri { + char *schema; + char *host; + char *port; + uint16_t port_no; + char *path; + char *query; + char *fragment; +}; + +struct parser { + char *iri; + struct iri *parsed; + const char *err; +}; + struct fcgi { int id; char *path; @@ -169,22 +185,6 @@ extern struct imsgbuf logibuf, exibuf, servibuf[PROC_MAX]; extern int servpipes[PROC_MAX]; -struct iri { - char *schema; - char *host; - char *port; - uint16_t port_no; - char *path; - char *query; - char *fragment; -}; - -struct parser { - char *iri; - struct iri *parsed; - const char *err; -}; - typedef void (imsg_handlerfn)(struct imsgbuf*, struct imsg*, size_t); enum { |