summaryrefslogtreecommitdiffstats
path: root/src/module-protocol-stub.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-24 23:27:06 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-24 23:27:06 +0000
commit1ad4ff1ca446fafb3abe9353a4048893dd3d9b77 (patch)
treefb063577e7a9e3846ecdf61459d1e018737e380f /src/module-protocol-stub.c
parenta1b59db7127f328820336837c8f9f215e923dc8d (diff)
some fixes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@36 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/module-protocol-stub.c')
-rw-r--r--src/module-protocol-stub.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/module-protocol-stub.c b/src/module-protocol-stub.c
index 2387017c..97bf5ef3 100644
--- a/src/module-protocol-stub.c
+++ b/src/module-protocol-stub.c
@@ -8,18 +8,21 @@
#include "protocol-simple.h"
#define protocol_free protocol_simple_free
#define IPV4_PORT 4711
+ #define UNIX_SOCKET "/tmp/polypaudio_simple"
#else
#ifdef USE_PROTOCOL_CLI
#include "protocol-cli.h"
#define protocol_new protocol_cli_new
#define protocol_free protocol_cli_free
#define IPV4_PORT 4712
+ #define UNIX_SOCKET "/tmp/polypaudio_cli"
#else
#ifdef USE_PROTOCOL_NATIVE
#include "protocol-native.h"
#define protocol_new protocol_native_new
#define protocol_free protocol_native_free
#define IPV4_PORT 4713
+ #define UNIX_SOCKET "/tmp/polypaudio_native"
#else
#error "Broken build system"
#endif
@@ -34,7 +37,7 @@ int module_init(struct core *c, struct module*m) {
if (!(s = socket_server_new_ipv4(c->mainloop, INADDR_LOOPBACK, IPV4_PORT)))
return -1;
#else
- if (!(s = socket_server_new_unix(c->mainloop, "/tmp/polypsimple")))
+ if (!(s = socket_server_new_unix(c->mainloop, UNIX_SOCKET)))
return -1;
#endif