]> err.no Git - varnish/commitdiff
Add file
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 21 Aug 2006 11:11:02 +0000 (11:11 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 21 Aug 2006 11:11:02 +0000 (11:11 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@864 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.h [new file with mode: 0644]

diff --git a/varnish-cache/bin/varnishd/cache_acceptor.h b/varnish-cache/bin/varnishd/cache_acceptor.h
new file mode 100644 (file)
index 0000000..c78ab2c
--- /dev/null
@@ -0,0 +1,31 @@
+/* 
+ * $Id$ 
+ */
+
+struct sess;
+
+typedef void acceptor_init_f(void);
+typedef void acceptor_recycle_f(struct sess *);
+
+struct acceptor {
+       const char              *name;
+       acceptor_init_f         *init;
+       acceptor_recycle_f      *recycle;
+};
+
+#if defined(HAVE_EPOLL_CTL)
+extern struct acceptor acceptor_epoll;
+#endif
+
+#if defined(HAVE_KQUEUE)
+extern struct acceptor acceptor_kqueue;
+#endif
+
+#if defined(HAVE_POLL)
+extern struct acceptor acceptor_poll;
+#endif
+
+/* vca_acceptor.c */
+struct sess *vca_accept_sess(int fd);
+void vca_handover(struct sess *sp, int bad);
+