move log_level to utils.c

This commit is contained in:
Alexandre Ratchov 2012-12-06 15:35:17 +01:00
parent 9e83398293
commit a17e696708
4 changed files with 11 additions and 13 deletions

View File

@ -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 \

View File

@ -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
*/

View File

@ -56,7 +56,6 @@
#include <stdlib.h>
#include <time.h>
#include "defs.h"
#include "file.h"
#include "utils.h"

View File

@ -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