aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-02-02 23:01:09 +0000
committerOmar Polo <op@omarpolo.com>2021-02-02 23:01:09 +0000
commitfe40638928b636182afb03b6327afa15c80d560c (patch)
tree5cb3c428c2296d6cbf3b6d4c42fd3d867fd73f78 /gmid.h
parent87f2b68b58fc46ff12a592474e65280ef8455aff (diff)
mark various functions as static
By marking all those function as static, the compiler is free to do more optimizations. In addition, those functions are not used outside server.c
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/gmid.h b/gmid.h
index dba93c3..5c107e2 100644
--- a/gmid.h
+++ b/gmid.h
@@ -220,29 +220,7 @@ const char *vhost_lang(struct vhost*, const char*);
const char *vhost_default_mime(struct vhost*, const char*);
const char *vhost_index(struct vhost*, const char*);
int vhost_auto_index(struct vhost*, const char*);
-int check_path(struct client*, const char*, int*);
-void open_file(struct pollfd*, struct client*);
-void load_file(struct pollfd*, struct client*);
-void check_for_cgi(struct pollfd*, struct client*);
void mark_nonblock(int);
-void handle_handshake(struct pollfd*, struct client*);
-void handle_open_conn(struct pollfd*, struct client*);
-void start_reply(struct pollfd*, struct client*, int, const char*);
-void handle_start_reply(struct pollfd*, struct client*);
-void start_cgi(const char*, const char*, struct pollfd*, struct client*);
-void send_file(struct pollfd*, struct client*);
-void open_dir(struct pollfd*, struct client*);
-void redirect_canonical_dir(struct pollfd*, struct client*);
-void enter_handle_dirlist(struct pollfd*, struct client*);
-void handle_dirlist(struct pollfd*, struct client*);
-int read_next_dir_entry(struct client*);
-void send_directory_listing(struct pollfd*, struct client*);
-void cgi_poll_on_child(struct pollfd*, struct client*);
-void cgi_poll_on_client(struct pollfd*, struct client*);
-void handle_cgi_reply(struct pollfd*, struct client*);
-void handle_cgi(struct pollfd*, struct client*);
-void close_conn(struct pollfd*, struct client*);
-void do_accept(int, struct tls*, struct pollfd*, struct client*);
void loop(struct tls*, int, int);
/* ex.c */