diff --git a/aucat/Makefile.in b/aucat/Makefile.in index 4301807..798e6c9 100644 --- a/aucat/Makefile.in +++ b/aucat/Makefile.in @@ -61,17 +61,17 @@ abuf.o: abuf.c abuf.h aparams.h aproc.h file.h conf.h dbg.h aparams.o: aparams.c aparams.h dbg.h aproc.o: aproc.c abuf.h aparams.h aproc.h file.h conf.h midi.h \ dbg.h -aucat.o: aucat.c ../bsd-compat/bsd-compat.h abuf.h aparams.h \ - aproc.h file.h conf.h dev.h listen.h midi.h opt.h wav.h \ - pipe.h dbg.h +aucat.o: aucat.c ../bsd-compat/bsd-compat.h abuf.h \ + ../libsndio/amsg.h aparams.h aproc.h file.h conf.h dev.h \ + listen.h midi.h opt.h wav.h pipe.h dbg.h dbg.o: dbg.c dbg.h dev.o: dev.c abuf.h aproc.h aparams.h file.h conf.h dev.h \ pipe.h miofile.h siofile.h midi.h opt.h dbg.h file.o: file.c abuf.h aproc.h aparams.h file.h conf.h dbg.h headers.o: headers.c aparams.h conf.h wav.h pipe.h file.h \ ../bsd-compat/bsd-compat.h -listen.o: listen.c conf.h listen.h aparams.h file.h sock.h amsg.h \ - pipe.h ../bsd-compat/bsd-compat.h +listen.o: listen.c conf.h listen.h aparams.h file.h sock.h \ + ../libsndio/amsg.h pipe.h ../bsd-compat/bsd-compat.h midi.o: midi.c abuf.h aproc.h aparams.h file.h conf.h dev.h \ midi.h dbg.h ../bsd-compat/bsd-compat.h miofile.o: miofile.c conf.h file.h miofile.h dbg.h @@ -80,7 +80,8 @@ pipe.o: pipe.c conf.h pipe.h file.h dbg.h siofile.o: siofile.c aparams.h aproc.h file.h abuf.h conf.h dev.h \ siofile.h dbg.h sock.o: sock.c abuf.h aproc.h aparams.h file.h conf.h dev.h \ - midi.h opt.h sock.h amsg.h pipe.h dbg.h \ + midi.h opt.h sock.h ../libsndio/amsg.h pipe.h dbg.h \ ../bsd-compat/bsd-compat.h wav.o: wav.c abuf.h aproc.h aparams.h file.h conf.h dev.h \ midi.h wav.h pipe.h opt.h dbg.h + diff --git a/aucat/aucat.c b/aucat/aucat.c index cb15fbd..66c7284 100644 --- a/aucat/aucat.c +++ b/aucat/aucat.c @@ -35,6 +35,7 @@ #include #include "abuf.h" +#include "amsg.h" #include "aparams.h" #include "aproc.h" #include "conf.h" diff --git a/aucat/conf.h b/aucat/conf.h index 0e067c0..92bdef7 100644 --- a/aucat/conf.h +++ b/aucat/conf.h @@ -30,15 +30,6 @@ extern int debug_level; #endif -/* - * socket and option names - */ -#define AUCAT_PATH "aucat" -#define MIDICAT_PATH "midicat" -#define AUCAT_PORT 11025 -#define MIDICAT_PORT 11041 -#define DEFAULT_OPT "default" - /* * MIDI buffer size */ diff --git a/libsndio/Makefile.in b/libsndio/Makefile.in index 23bc967..911dc41 100644 --- a/libsndio/Makefile.in +++ b/libsndio/Makefile.in @@ -1,5 +1,5 @@ # extra includes paths (-I options) -INCLUDE = -I../aucat -I../bsd-compat +INCLUDE = -I../bsd-compat # extra libraries paths (-L options) LIB = @@ -125,17 +125,17 @@ strlcpy.o: ../bsd-compat/strlcpy.c strtonum.o: ../bsd-compat/strtonum.c ${CC} ${CFLAGS} ${SO_CFLAGS} ${INCLUDE} ${DEFS} -c -o strtonum.o ../bsd-compat/strtonum.c -aucat.o: aucat.c aucat.h ../aucat/amsg.h ../aucat/conf.h debug.h \ +aucat.o: aucat.c aucat.h amsg.h debug.h \ ../bsd-compat/bsd-compat.h debug.o: debug.c debug.h ../bsd-compat/bsd-compat.h mio.o: mio.c debug.h mio_priv.h sndio.h \ ../bsd-compat/bsd-compat.h -mio_aucat.o: mio_aucat.c aucat.h ../aucat/amsg.h ../aucat/conf.h \ - debug.h mio_priv.h sndio.h ../bsd-compat/bsd-compat.h +mio_aucat.o: mio_aucat.c aucat.h amsg.h debug.h mio_priv.h sndio.h \ + ../bsd-compat/bsd-compat.h mio_rmidi.o: mio_rmidi.c debug.h mio_priv.h sndio.h sio.o: sio.c debug.h sio_priv.h sndio.h \ ../bsd-compat/bsd-compat.h sio_alsa.o: sio_alsa.c debug.h sio_priv.h sndio.h -sio_aucat.o: sio_aucat.c aucat.h ../aucat/amsg.h ../aucat/conf.h \ - debug.h sio_priv.h sndio.h ../bsd-compat/bsd-compat.h +sio_aucat.o: sio_aucat.c aucat.h amsg.h debug.h sio_priv.h sndio.h \ + ../bsd-compat/bsd-compat.h sio_sun.o: sio_sun.c debug.h sio_priv.h sndio.h diff --git a/aucat/amsg.h b/libsndio/amsg.h similarity index 94% rename from aucat/amsg.h rename to libsndio/amsg.h index fc08662..bcae63c 100644 --- a/aucat/amsg.h +++ b/libsndio/amsg.h @@ -18,7 +18,15 @@ #define AMSG_H #include -#include "conf.h" + +/* + * socket and option names + */ +#define AUCAT_PATH "aucat" +#define MIDICAT_PATH "midicat" +#define AUCAT_PORT 11025 +#define MIDICAT_PORT 11041 +#define DEFAULT_OPT "default" /* * WARNING: since the protocol may be simultaneously used by static