summaryrefslogtreecommitdiffstats
path: root/src/module-protocol-stub.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-19 19:27:47 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-19 19:27:47 +0000
commit81447ed392e57f822e09cf648cb16732a3e3773f (patch)
tree6c7030f9b2b6f8b89d91063ac53f2325446f2616 /src/module-protocol-stub.c
parent6eddcc2f856e2b8910046702e0a096e75942c2d6 (diff)
cli protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@28 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/module-protocol-stub.c')
-rw-r--r--src/module-protocol-stub.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/module-protocol-stub.c b/src/module-protocol-stub.c
index 905594c6..9cbf236e 100644
--- a/src/module-protocol-stub.c
+++ b/src/module-protocol-stub.c
@@ -6,12 +6,14 @@
#ifdef USE_PROTOCOL_SIMPLE
#include "protocol-simple.h"
- #define protocol_free protcol_simple_free
+ #define protocol_free protocol_simple_free
+ #define IPV4_PORT 4712
#else
#ifdef USE_PROTOCOL_CLI
#include "protocol-cli.h"
#define protocol_new protocol_cli_new
#define protocol_free protocol_cli_free
+ #define IPV4_PORT 4711
#else
#error "Broken build system"
#endif
@@ -22,7 +24,7 @@ int module_init(struct core *c, struct module*m) {
assert(c && m);
#ifdef USE_TCP_SOCKETS
- if (!(s = socket_server_new_ipv4(c->mainloop, INADDR_LOOPBACK, 4712)))
+ 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")))
@@ -42,5 +44,5 @@ int module_init(struct core *c, struct module*m) {
void module_done(struct core *c, struct module*m) {
assert(c && m);
- protocol_simple_free(m->userdata);
+ protocol_free(m->userdata);
}