summaryrefslogtreecommitdiff
path: root/package/uhttpd/src/uhttpd-utils.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-07-09 00:08:20 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-07-09 00:08:20 +0000
commit86de034767ea5ce560a55fa1cb59fec9ea6fcc20 (patch)
treef26e65977da4b840cee9ce51b476c1755b5e5df8 /package/uhttpd/src/uhttpd-utils.h
parent1f1cf1990b3114f66180fb022dc0f32343728cb3 (diff)
downloadmtk-20170518-86de034767ea5ce560a55fa1cb59fec9ea6fcc20.zip
mtk-20170518-86de034767ea5ce560a55fa1cb59fec9ea6fcc20.tar.gz
mtk-20170518-86de034767ea5ce560a55fa1cb59fec9ea6fcc20.tar.bz2
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 SVN-Revision: 32651
Diffstat (limited to 'package/uhttpd/src/uhttpd-utils.h')
-rw-r--r--package/uhttpd/src/uhttpd-utils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/uhttpd/src/uhttpd-utils.h b/package/uhttpd/src/uhttpd-utils.h
index 797b07d..31047f5 100644
--- a/package/uhttpd/src/uhttpd-utils.h
+++ b/package/uhttpd/src/uhttpd-utils.h
@@ -23,6 +23,9 @@
#include <pwd.h>
#include <sys/stat.h>
+#include <libubox/uloop.h>
+
+
#ifdef HAVE_SHADOW
#include <shadow.h>
#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