aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/msgb.c
AgeCommit message (Collapse)AuthorFilesLines
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-98/+0
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2009-12-24move msgb talloc context into talloc_ctx.cHarald Welte1-6/+1
This keeps the ordering right, independent of link ordering, it will ensure that the talloc dump will also catch msgb related memory leaks.
2009-12-17logging: introduce log levels at caller siteHarald Welte1-1/+4
This introduces a new LOGP() macro together with LOGL_* definition to support multiple log levels (severities) throughout the codebase. Please note that the actual logging system does not use them yet, in this patch we simply introduce the new macros at the caller site.
2009-10-21[msgb] Add msgb_reset to reset an existing msgb* to the initial stateHolger Hans Peter Freyther1-0/+20
The reset is useful if one msgb is supposed to be used over and over again and is avoiding to use msgb_free,msgb_alloc in the application code.
2009-07-28move allocation of talloc contexts into link-time constructorHarald Welte1-3/+5
This is much more optimal than checking if the context exists every time we allocate the respective object.
2009-06-26use named variant when allocating msgb'sHarald Welte1-3/+2
when we generate a talloc report (SIGUSR1), we can now see which system allocated a given msgb, this helps memory leak debugging
2009-06-20introduce talloc all over OpenBSCHarald Welte1-2/+11
2009-06-10move openbsc into its own subdirectoryHarald Welte1-0/+70