From eecf602476ff5b51bdc08f8fd0e4aa70d2b0ef5a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 20 Jun 2004 01:12:13 +0000 Subject: partial implementation of native protocol git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@30 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/protocol-native-unix.c | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/protocol-native-unix.c (limited to 'src/protocol-native-unix.c') diff --git a/src/protocol-native-unix.c b/src/protocol-native-unix.c deleted file mode 100644 index a18965cd..00000000 --- a/src/protocol-native-unix.c +++ /dev/null @@ -1,27 +0,0 @@ -#include "module.h" - -int module_init(struct core *c, struct module*m) { - struct fn[PATH_MAX]; - struct socket_server *s; - char *t; - assert(c && m); - - if (!(t = getenv("TMP"))) - if (!(t = getenv("TEMP"))) - t = "/tmp"; - - snprintf(fn, sizeof(fn), "%s/foosock", t); - - if (!(s = socket_server_new_unix(c->mainloop, fn))) - return -1; - - m->userdata = protocol_native_new(s); - assert(m->userdata); - return 0; -} - -void module_done(struct core *c, struct module*m) { - assert(c && m); - - protocol_native_free(m->userdata); -} -- cgit