]>
code.delx.au - pulseaudio/blob - src/protocol-native-unix.c
3 int module_init(struct core
*c
, struct module
*m
) {
5 struct socket_server
*s
;
9 if (!(t
= getenv("TMP")))
10 if (!(t
= getenv("TEMP")))
13 snprintf(fn
, sizeof(fn
), "%s/foosock", t
);
15 if (!(s
= socket_server_new_unix(c
->mainloop
, fn
)))
18 m
->userdata
= protocol_native_new(s
);
23 void module_done(struct core
*c
, struct module
*m
) {
26 protocol_native_free(m
->userdata
);