summaryrefslogtreecommitdiffstats
path: root/polyp/module-protocol-stub.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-12 17:37:31 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-12 17:37:31 +0000
commit4590f09d0b44aeb7cef3eed72b419444ea36d8e0 (patch)
tree1bdf89c241e1eb1e49906fdb8d163a26927764f0 /polyp/module-protocol-stub.c
parent32bf3a106a946303f2175f01f3124354edd95a3e (diff)
* make pa_sample_spec_snprint return point to written string
* first try of a http module git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@339 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module-protocol-stub.c')
-rw-r--r--polyp/module-protocol-stub.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/polyp/module-protocol-stub.c b/polyp/module-protocol-stub.c
index 93e576af..be27b8e2 100644
--- a/polyp/module-protocol-stub.c
+++ b/polyp/module-protocol-stub.c
@@ -85,6 +85,23 @@
#endif
PA_MODULE_DESCRIPTION("Command line interface protocol "SOCKET_DESCRIPTION)
PA_MODULE_USAGE(SOCKET_USAGE)
+#elif defined(USE_PROTOCOL_HTTP)
+ #include "protocol-http.h"
+ #define protocol_new pa_protocol_http_new
+ #define protocol_free pa_protocol_http_free
+ #define TCPWRAP_SERVICE "polypaudio-http"
+ #define IPV4_PORT 4714
+ #define UNIX_SOCKET "http"
+ #define MODULE_ARGUMENTS
+ #ifdef USE_TCP_SOCKETS
+ #include "module-http-protocol-tcp-symdef.h"
+ #elif defined(USE_TCP6_SOCKETS)
+ #include "module-http-protocol-tcp6-symdef.h"
+ #else
+ #include "module-http-protocol-unix-symdef.h"
+ #endif
+ PA_MODULE_DESCRIPTION("HTTP "SOCKET_DESCRIPTION)
+ PA_MODULE_USAGE(SOCKET_USAGE)
#elif defined(USE_PROTOCOL_NATIVE)
#include "protocol-native.h"
#define protocol_new pa_protocol_native_new