diff options
author | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
---|---|---|
committer | stbuehler <stbuehler@152afb58-edef-0310-8abb-c4023f1b3aa9> | 2015-09-18 15:15:18 +0000 |
commit | 8b2630a82fbecfd57fa38aebb397a755936690e5 (patch) | |
tree | a9cfcd7bb5bea87d63fc8ef81c8456a130a249bc /src/mod_proxy_core_protocol.h | |
parent | e57c8295ebe92b58ca3e68fa8ea8f70d4b0b4cee (diff) | |
download | lighttpd-master.tar.gz |
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/mod_proxy_core_protocol.h')
-rw-r--r-- | src/mod_proxy_core_protocol.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/mod_proxy_core_protocol.h b/src/mod_proxy_core_protocol.h deleted file mode 100644 index e846089f..00000000 --- a/src/mod_proxy_core_protocol.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _MOD_PROXY_CORE_PROTOCOL_H_ -#define _MOD_PROXY_CORE_PROTOCOL_H_ - -#include "base.h" -#include "array-static.h" -#include "buffer.h" - -#define PROXY_CONNECTION_FUNC(x) \ - static int x(server *srv, proxy_connection *proxy_con) - -#define PROXY_STREAM_DECODER_FUNC(x) \ - static handler_t x(server *srv, proxy_session *sess, chunkqueue *out) - -#define PROXY_STREAM_ENCODER_FUNC(x) \ - static handler_t x(server *srv, proxy_session *sess, chunkqueue *in) - -typedef struct proxy_protocol { - buffer *name; - - int (*proxy_stream_init) (server *srv, proxy_connection *proxy_con); - int (*proxy_stream_cleanup) (server *srv, proxy_connection *proxy_con); - handler_t (*proxy_stream_decoder) (server *srv, proxy_session *sess, chunkqueue *out); - handler_t (*proxy_stream_encoder) (server *srv, proxy_session *sess, chunkqueue *in); - handler_t (*proxy_encode_request_headers) (server *srv, proxy_session *sess, chunkqueue *in); - -} proxy_protocol; - -ARRAY_STATIC_DEF(proxy_protocols, proxy_protocol, ); - -proxy_protocol *proxy_protocol_init(void); -void proxy_protocol_free(proxy_protocol *protocol); - -void proxy_protocols_init(void); -void proxy_protocols_free(void); -void proxy_protocols_register(proxy_protocol *protocol); -proxy_protocol *proxy_get_protocol(buffer *name); -const char *proxy_available_protocols(void); - -#endif - |