]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] proxy: add an accept() callback for the application layer
authorWilly Tarreau <w@1wt.eu>
Tue, 1 Jun 2010 15:14:24 +0000 (17:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jun 2010 08:53:17 +0000 (10:53 +0200)
This will be used by the application layer for setting accept callbacks.

include/types/proxy.h

index 0c1ca76738b0d9fff9ba9f35a7bf36e1ede6bda9..f7d4e8c33fb1f671f9c56debdfd4feb8997b40d4 100644 (file)
@@ -257,6 +257,7 @@ struct proxy {
 #endif
        int iface_len;                          /* bind interface name length */
        char *iface_name;                       /* bind interface name or NULL */
+       int (*accept)(struct session *s);       /* application layer's accept() */
        struct proxy *next;
        struct logsrv logsrv1, logsrv2;         /* 2 syslog servers */
        signed char logfac1, logfac2;           /* log facility for both servers. -1 = disabled */