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/network_backends.h | |
parent | e57c8295ebe92b58ca3e68fa8ea8f70d4b0b4cee (diff) | |
download | lighttpd-8b2630a82fbecfd57fa38aebb397a755936690e5.tar.gz |
git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@3041 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src/network_backends.h')
-rw-r--r-- | src/network_backends.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/network_backends.h b/src/network_backends.h deleted file mode 100644 index 4f99a663..00000000 --- a/src/network_backends.h +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef _NETWORK_BACKENDS_H_ -#define _NETWORK_BACKENDS_H_ - -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif - -#include <sys/types.h> - -#include "settings.h" -#include "base.h" -#include "network.h" - -#define NETWORK_BACKEND_WRITE_CHUNK(x) \ - network_status_t network_write_chunkqueue_##x(server *srv, connection *con, iosocket *sock, chunkqueue *cq, chunk *c) - -#define NETWORK_BACKEND_WRITE(x) \ - network_status_t network_write_chunkqueue_##x(server *srv, connection *con, iosocket *sock, chunkqueue *cq) -#define NETWORK_BACKEND_READ(x) \ - network_status_t network_read_chunkqueue_##x(server *srv, connection *con, iosocket *sock, chunkqueue *cq) - -LI_API NETWORK_BACKEND_WRITE_CHUNK(writev_mem); - -LI_API NETWORK_BACKEND_WRITE(write); -LI_API NETWORK_BACKEND_WRITE(writev); -LI_API NETWORK_BACKEND_WRITE(linuxsendfile); -LI_API NETWORK_BACKEND_WRITE(linuxaiosendfile); -LI_API NETWORK_BACKEND_WRITE(posixaio); -LI_API NETWORK_BACKEND_WRITE(gthreadaio); -LI_API NETWORK_BACKEND_WRITE(gthreadsendfile); -LI_API NETWORK_BACKEND_WRITE(gthreadfreebsdsendfile); -LI_API NETWORK_BACKEND_WRITE(freebsdsendfile); -LI_API NETWORK_BACKEND_WRITE(solarissendfilev); - -LI_API NETWORK_BACKEND_WRITE(win32transmitfile); -LI_API NETWORK_BACKEND_WRITE(win32send); - -LI_API NETWORK_BACKEND_READ(read); -LI_API NETWORK_BACKEND_READ(win32recv); - -#ifdef USE_OPENSSL -LI_API NETWORK_BACKEND_WRITE(openssl); -LI_API NETWORK_BACKEND_READ(openssl); -#endif - -typedef struct { - network_backend_t type; - const char *name; - const char *description; - network_status_t (*read_handler)(server *srv, connection *con, iosocket *sock, chunkqueue *cq); - network_status_t (*write_handler)(server *srv, connection *con, iosocket *sock, chunkqueue *cq); -} network_backend_info_t; - -LI_API const network_backend_info_t *network_get_backends(); -LI_API const network_backend_info_t *network_get_defaultbackend(); -LI_API const network_backend_info_t *network_get_backend_info_by_type(network_backend_t type); -LI_API const network_backend_info_t *network_get_backend_info_by_name(const char *name); - -#endif |