AM_CFLAGS=-ansi -D_GNU_SOURCE
-bin_PROGRAMS = polypaudio pacat pactl pacat-simple parec-simple
+EXTRA_DIST = polypaudio.run
+bin_PROGRAMS = polypaudio pacat pactl
+noinst_PROGRAMS = pacat-simple parec-simple
+noinst_SCRIPTS = depmod.py
pkglib_LTLIBRARIES=libiochannel.la \
libsocket-server.la \
module-native-protocol-unix.la \
libpolyp.la \
libpolyp-simple.la \
- libpolyp-error.la
+ libpolyp-error.la \
+ libpolyp-mainloop.la
polypaudio_SOURCES = idxset.c idxset.h \
queue.c queue.h \
memblockq.c memblockq.h \
client.c client.h \
core.c core.h \
- sourceoutput.c sourceoutput.h \
- sinkinput.c sinkinput.h \
+ source-output.c source-output.h \
+ sink-input.c sink-input.h \
source.c source.h \
sink.c sink.h \
module.c module.h \
libprotocol_cli_la_LDFLAGS = -avoid-version
libprotocol_cli_la_LIBADD = libsocket-server.la libiochannel.la libcli.la
-libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h
+libprotocol_native_la_SOURCES = protocol-native.c protocol-native.h native-common.h
libprotocol_native_la_LDFLAGS = -avoid-version
libprotocol_native_la_LIBADD = libsocket-server.la libpstream.la libpstream-util.la libpdispatch.la libtagstruct.la libauthkey.la
libtagstruct_la_SOURCES = tagstruct.c tagstruct.h
libtagstruct_la_LDFLAGS = -avoid-version
-libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound-spec.h
+libprotocol_esound_la_SOURCES = protocol-esound.c protocol-esound.h esound.h
libprotocol_esound_la_LDFLAGS = -avoid-version
libprotocol_esound_la_LIBADD = libsocket-server.la libiochannel.la libauthkey.la
module_cli_la_LDFLAGS = -module -avoid-version
module_cli_la_LIBADD = libcli.la libiochannel.la
-libpolyp_la_SOURCES = polyp.c polyp.h \
- polypdef.h \
+libpolyp_la_SOURCES = polyplib.c polyplib.h \
+ polyplib-def.h \
tagstruct.c tagstruct.h \
iochannel.c iochannel.h \
pstream.c pstream.h \
pdispatch.c pdispatch.h \
protocol-native-spec.h \
mainloop-api.c mainloop-api.h \
- mainloop.c mainloop.h \
- mainloop-signal.c mainloop-signal.h \
idxset.c idxset.h \
util.c util.h \
memblock.c memblock.h \
dynarray.c dynarray.h \
memchunk.c memchunk.h \
authkey.c authkey.h \
- socket-util.c socket-util.h
+ socket-util.c socket-util.h \
+ native-common.h
libpolyp_la_CFLAGS = $(AM_CFLAGS)
-libpolyp_error_la_SOURCES = polyp-error.c polyp-error.h
+libpolyp_mainloop_la_SOURCES = mainloop-api.h mainloop-api.c \
+ mainloop.c mainloop.h \
+ mainloop-signal.c mainloop-signal.h
+libpolyp_mainloop_la_CFLAGS = $(AM_CFLAGS)
+
+libpolyp_error_la_SOURCES = polyplib-error.c polyplib-error.h
libpolyp_error_la_CFLAGS = $(AM_CFLAGS)
-libpolyp_simple_la_SOURCES = simple.c simple.h
+libpolyp_simple_la_SOURCES = polyplib-simple.c polyplib-simple.h
libpolyp_simple_la_CFLAGS = $(AM_CFLAGS)
-libpolyp_simple_la_LIBADD = libpolyp.la
+libpolyp_simple_la_LIBADD = libpolyp.la libpolyp-mainloop.la
pacat_SOURCES = pacat.c #$(libpolyp_la_SOURCES) $(libpolyp_error_la_SOURCES)
-pacat_LDADD = libpolyp.la libpolyp-error.la
+pacat_LDADD = libpolyp.la libpolyp-error.la libpolyp-mainloop.la
pacat_CFLAGS = $(AM_CFLAGS)
pactl_SOURCES = pactl.c #$(libpolyp_la_SOURCES) $(libpolyp_error_la_SOURCES)
-pactl_LDADD = libpolyp.la libpolyp-error.la
+pactl_LDADD = libpolyp.la libpolyp-error.la libpolyp-mainloop.la
pactl_CFLAGS = $(AM_CFLAGS)
pacat_simple_SOURCES = pacat-simple.c #$(libpolyp_la_SOURCES) $(libpolyp_simple_la_SOURCES) $(libpolyp_error_la_SOURCES)
#include "sink.h"
#include "source.h"
#include "client.h"
-#include "sinkinput.h"
-#include "sourceoutput.h"
+#include "sink-input.h"
+#include "source-output.h"
#include "tokenizer.h"
#include "strbuf.h"
#include "namereg.h"
#include "sink.h"
#include "source.h"
#include "client.h"
-#include "sinkinput.h"
-#include "sourceoutput.h"
+#include "sink-input.h"
+#include "source-output.h"
#include "tokenizer.h"
#include "strbuf.h"
#include "namereg.h"
#include "client.h"
#include "sink.h"
#include "source.h"
-#include "sinkinput.h"
-#include "sourceoutput.h"
+#include "sink-input.h"
+#include "source-output.h"
#include "strbuf.h"
#include "sample-util.h"
#else
#ifdef USE_PROTOCOL_ESOUND
#include "protocol-esound.h"
- #include "esound-spec.h"
+ #include "esound.h"
#define protocol_new pa_protocol_esound_new
#define protocol_free pa_protocol_esound_free
#define IPV4_PORT ESD_DEFAULT_PORT
-#ifndef fooprotocolnativespech
-#define fooprotocolnativespech
+#ifndef foonativecommonhfoo
+#define foonativecommonhfoo
enum {
PA_COMMAND_ERROR,
#include <string.h>
#include <errno.h>
-#include "simple.h"
-#include "polyp-error.h"
+#include "polyplib-simple.h"
+#include "polyplib-error.h"
#define BUFSIZE 1024
#include <stdio.h>
#include <stdlib.h>
-#include "polyp.h"
-#include "polyp-error.h"
+#include "polyplib.h"
+#include "polyplib-error.h"
#include "mainloop.h"
#include "mainloop-signal.h"
#include <stdio.h>
#include <stdlib.h>
-#include "polyp.h"
-#include "polyp-error.h"
+#include "polyplib.h"
+#include "polyplib-error.h"
#include "mainloop.h"
#include "mainloop-signal.h"
#include <string.h>
#include <errno.h>
-#include "simple.h"
-#include "polyp-error.h"
+#include "polyplib-simple.h"
+#include "polyplib-error.h"
#define BUFSIZE 1024
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
+
#include "pdispatch.h"
-#include "protocol-native-spec.h"
+#include "native-common.h"
#ifdef DEBUG_OPCODES
-#ifndef foopolypdefhfoo
-#define foopolypdefhfoo
+#ifndef foopolyplibdefhfoo
+#define foopolyplibdefhfoo
#include <inttypes.h>
uint32_t fragsize;
};
-
#endif
#include <stdio.h>
#include <stdlib.h>
-#include "polyp-error.h"
-#include "protocol-native-spec.h"
+#include "polyplib-error.h"
+#include "native-common.h"
static const char* const errortab[PA_ERROR_MAX] = {
[PA_ERROR_OK] = "OK",
-#ifndef foopolyperrhfoo
-#define foopolyperrhfoo
+#ifndef foopolypliberrorhfoo
+#define foopolypliberrorhfoo
#include <inttypes.h>
-#include "protocol-native-spec.h"
-
const char* pa_strerror(uint32_t error);
#endif
#include <assert.h>
#include <stdlib.h>
-#include "simple.h"
-#include "polyp.h"
+#include "polyplib-simple.h"
+#include "polyplib.h"
#include "mainloop.h"
-#include "polyp-error.h"
+#include "native-common.h"
+/*#include "polyp-error.h"*/
struct pa_simple {
struct pa_mainloop *mainloop;
-#ifndef foosimplehfoo
-#define foosimplehfoo
+#ifndef foopolyplibsimplehfoo
+#define foopolyplibsimplehfoo
#include <sys/types.h>
#include "sample.h"
-#include "polypdef.h"
+#include "polyplib-def.h"
struct pa_simple;
#include <sys/socket.h>
#include <netdb.h>
-#include "polyp.h"
-#include "protocol-native-spec.h"
+#include "polyplib.h"
+#include "native-common.h"
#include "pdispatch.h"
#include "pstream.h"
#include "dynarray.h"
-#ifndef foopolyphfoo
-#define foopolyphfoo
+#ifndef foopolyplibhfoo
+#define foopolyplibhfoo
#include <sys/types.h>
#include "sample.h"
-#include "polypdef.h"
+#include "polyplib-def.h"
#include "mainloop-api.h"
struct pa_context;
#include <limits.h>
#include "protocol-esound.h"
-#include "esound-spec.h"
+#include "esound.h"
#include "memblock.h"
#include "client.h"
-#include "sinkinput.h"
+#include "sink-input.h"
#include "sink.h"
-#include "sourceoutput.h"
+#include "source-output.h"
#include "source.h"
#include "sample.h"
#include <stdlib.h>
#include "protocol-native.h"
-#include "protocol-native-spec.h"
+#include "native-common.h"
#include "packet.h"
#include "client.h"
-#include "sourceoutput.h"
-#include "sinkinput.h"
+#include "source-output.h"
+#include "sink-input.h"
#include "pstream.h"
#include "tagstruct.h"
#include "pdispatch.h"
#include <errno.h>
#include <string.h>
-#include "sinkinput.h"
-#include "sourceoutput.h"
+#include "sink-input.h"
+#include "source-output.h"
#include "protocol-simple.h"
#include "client.h"
#include "sample-util.h"
#include <assert.h>
-#include "protocol-native-spec.h"
+#include "native-common.h"
#include "pstream-util.h"
void pa_pstream_send_tagstruct(struct pa_pstream *p, struct pa_tagstruct *t) {
#include <stdlib.h>
#include <string.h>
-#include "sinkinput.h"
+#include "sink-input.h"
#include "sample-util.h"
#define CONVERT_BUFFER_LENGTH 4096
#include <stdio.h>
#include "sink.h"
-#include "sinkinput.h"
+#include "sink-input.h"
#include "namereg.h"
#include "util.h"
#include "sample-util.h"
#include <stdlib.h>
#include <string.h>
-#include "sourceoutput.h"
+#include "source-output.h"
struct pa_source_output* pa_source_output_new(struct pa_source *s, const char *name, const struct pa_sample_spec *spec) {
struct pa_source_output *o;
#include <string.h>
#include "source.h"
-#include "sourceoutput.h"
+#include "source-output.h"
#include "namereg.h"
struct pa_source* pa_source_new(struct pa_core *core, const char *name, int fail, const struct pa_sample_spec *spec) {