From 84032b177b6535804ac879c6b52a1775cdd8edc3 Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 9 Jul 2012 00:08:20 +0000 Subject: [package] uhttpd: various fixes - avoid closing descriptors before removing them from uloop (#11755, #11830) - do not auto-initialize ubus if no prefix is set (#11832) - remove extraneous client context pointer from cgi and lua states - code cleanups and debug message changes git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32651 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/uhttpd/src/uhttpd-utils.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/uhttpd/src/uhttpd-utils.h') diff --git a/package/uhttpd/src/uhttpd-utils.h b/package/uhttpd/src/uhttpd-utils.h index 797b07def..31047f555 100644 --- a/package/uhttpd/src/uhttpd-utils.h +++ b/package/uhttpd/src/uhttpd-utils.h @@ -23,6 +23,9 @@ #include #include +#include + + #ifdef HAVE_SHADOW #include #endif @@ -123,7 +126,8 @@ struct client * uh_client_lookup(int sock); void uh_client_shutdown(struct client *cl); void uh_client_remove(struct client *cl); -#define uh_client_gc() uh_client_remove(NULL) +void uh_ufd_add(struct uloop_fd *u, uloop_fd_handler h, unsigned int ev); +void uh_ufd_remove(struct uloop_fd *u); #ifdef HAVE_CGI -- cgit v1.2.3