Hi Even with the previous patch, cgit wasn't completely stable. After this series, it is.
This series applies on top of the earlier patch. - Lauri
>From 8b09ecbf2d36715d00e5aadc9d16e30e9f8da712 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Sun, 16 Dec 2012 16:41:01 +0200 Subject: [PATCH 1/3] cgi: Document the request getters Signed-off-by: Lauri Kasanen <[email protected]> --- plugins/cgi/cgi.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/plugins/cgi/cgi.h b/plugins/cgi/cgi.h index e2fcac8..d649fe5 100644 --- a/plugins/cgi/cgi.h +++ b/plugins/cgi/cgi.h @@ -66,6 +66,7 @@ struct cgi_request *cgi_req_create(int fd, int socket, struct session_request *s void cgi_req_add(struct cgi_request *r); int cgi_req_del(struct cgi_request *r); +// Get the CGI request by the client socket static inline struct cgi_request *cgi_req_get(int socket) { struct cgi_request *r = requests_by_socket[socket]; @@ -73,6 +74,7 @@ static inline struct cgi_request *cgi_req_get(int socket) return r; } +// Get the CGI request by the CGI app's fd static inline struct cgi_request *cgi_req_get_by_fd(int fd) { struct mk_list *list, *node; -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
