diff --git a/sndiod/Makefile.in b/sndiod/Makefile.in index 8b69366..ffa96bd 100644 --- a/sndiod/Makefile.in +++ b/sndiod/Makefile.in @@ -57,7 +57,7 @@ abuf.o: abuf.c abuf.h defs.h utils.h dev.o: dev.c ../bsd-compat/bsd-compat.h abuf.h defs.h dev.h \ dsp.h siofile.h midi.h miofile.h opt.h sysex.h utils.h dsp.o: dsp.c defs.h dsp.h utils.h -file.o: file.c defs.h file.h utils.h +file.o: file.c file.h utils.h listen.o: listen.c listen.h file.h sock.h ../libsndio/amsg.h \ utils.h ../bsd-compat/bsd-compat.h midi.o: midi.c abuf.h defs.h dev.h dsp.h siofile.h file.h midi.h \ diff --git a/sndiod/defs.h b/sndiod/defs.h index e20a5f1..9f43aee 100644 --- a/sndiod/defs.h +++ b/sndiod/defs.h @@ -17,17 +17,6 @@ #ifndef DEFS_H #define DEFS_H -/* - * Log levels: - * - * 0 - fatal errors: bugs, asserts, internal errors. - * 1 - warnings: bugs in clients, failed allocations, non-fatal errors. - * 2 - misc information (hardware parameters, incoming clients) - * 3 - structural changes (new aproc structures and files stream params changes) - * 4 - data blocks and messages - */ -extern unsigned int log_level; - /* * MIDI buffer size */ diff --git a/sndiod/file.c b/sndiod/file.c index 7bda292..8e2cc49 100644 --- a/sndiod/file.c +++ b/sndiod/file.c @@ -56,7 +56,6 @@ #include #include -#include "defs.h" #include "file.h" #include "utils.h" diff --git a/sndiod/utils.h b/sndiod/utils.h index d01ee10..aeb1986 100644 --- a/sndiod/utils.h +++ b/sndiod/utils.h @@ -31,6 +31,16 @@ void *xmalloc(size_t); char *xstrdup(char *); void xfree(void *); +/* + * Log levels: + * + * 0 - fatal errors: bugs, asserts, internal errors. + * 1 - warnings: bugs in clients, failed allocations, non-fatal errors. + * 2 - misc information (hardware parameters, incoming clients) + * 3 - structural changes (eg. new streams, new parameters ...) + * 4 - data blocks and messages + */ +extern unsigned int log_level; extern unsigned int log_sync; #endif