logging: introduce library-internal logging categories
authorHarald Welte <laforge@gnumonks.org>
Mon, 27 Jun 2011 08:29:17 +0000 (10:29 +0200)
committerHarald Welte <laforge@gnumonks.org>
Mon, 27 Jun 2011 08:40:25 +0000 (10:40 +0200)
commitb43bc048eb4c2c0855d4d7c4ad6b0b3c14e50eb2
treebd413e31f3b84238287a01d19128809433b93b2c
parentea19c978160af32e4fee8001f5308518bcf4fd4c
logging: introduce library-internal logging categories

We do this by using a trick: library-internal log categories use
negative subsystem numbers, which are converted into positive
array indexes at the time of logging.

library-internal log categories need to be knwo at compile-time,
while application-specified categories now are of unlimited number,
as they are dynamically allocated.
include/osmocom/core/logging.h
src/application.c
src/logging.c