aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-12-29 19:24:33 +0000
committerOmar Polo <op@omarpolo.com>2021-12-29 19:24:33 +0000
commit054387bb26e75cef12e8dc0f531e7ee42614edd7 (patch)
tree165862732f7dacd05fe60246a151e4d264709fcf /gmid.h
parenta62c63f2614297bc8973e6613a5cf25dc1697ce1 (diff)
move struct iri and parser at the top of the file
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/gmid.h b/gmid.h
index f7c846e..a92665c 100644
--- a/gmid.h
+++ b/gmid.h
@@ -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 {