summaryrefslogtreecommitdiffstats
path: root/include/osmocore/msgb.h
Commit message (Collapse)AuthorAgeFilesLines
* msgb: Make sure at compile time that headroom is smaller than sizeHolger Hans Peter Freyther2011-01-161-0/+3
| | | | | | | All current code is using constants to allocate the msgb with headroom. Use a static_assert to make sure that the headroom is smaller than the size. This makes API misusage unlikely to happen.
* Move the generate backtrace call from MSGB_ABORT to osmo_panic handlerSylvain Munaut2010-11-131-2/+0
| | | | | | | | | | | | This has two benefits: - All people calling osmo_panic() will have the backtrace - It makes the thing build in 'target' mode in osmocom-bb And one downside: - The osmo_panic handler is now in the backtrace (I can live with that :) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* msgb: fix printing of msgb pointer during MSGB_ABORT()Harald Welte2010-11-091-1/+1
|
* msgb: don't compare unsigned int with int (fix lcr build)Harald Welte2010-11-091-2/+2
|
* msgb_abort(): better formattingHarald Welte2010-11-051-1/+1
|
* generate backtrace in msgb_abort()Harald Welte2010-11-051-0/+2
| | | | This helps us to debug where we encounter insufficient headroom...
* Change msgb_abort() function in MSGB_ABORT argument with variable argumentsHarald Welte2010-11-051-10/+9
| | | | | | | This enables callers to provide format string and arguments to it Also, put conditionals into the macro, and remove them from the caller site.
* msgb: Add non-inlined helper functions to ease with language bindingsHolger Hans Peter Freyther2010-10-181-0/+5
| | | | | | It is easier from languages that dlopen libosmocore to have a function to access this data than to poke at the bytes of the struct directly. Add copyright for this method and the reset method I did earlier this year.
* core/msgb: Use the new osmo_panic call to handle errorsSylvain Munaut2010-07-251-4/+2
| | | | Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* msgb: Avoid warnings that the string might contain %s or such..Holger Hans Peter Freyther2010-07-231-1/+1
|
* msgb: Check for available headroom/tailroom and abort() if we violate itHarald Welte2010-07-221-4/+31
|
* msgb: introduce msgb->cb (the control buffer)Harald Welte2010-04-301-0/+4
|
* msgb: remove smsh, llch, tlli and gmmhHarald Welte2010-04-301-11/+2
| | | | | This is a lot of GSM/GPRS specific stuff in struct msgb which we want to avoid. The 'control buffer' will replace them.
* remove the unneeded bts_link pointer from msgbHarald Welte2010-04-301-5/+0
|
* osmocore: Add a direct l4h to the union of l4h pointersHolger Hans Peter Freyther2010-03-221-0/+1
| | | | This is needed for the BSSAP code of the On Waves/BSC master branch
* msgb: Buffer formatting and scanning functions.Ingo Albrecht2010-03-071-0/+41
|
* add msgb_l1() and msgb_l1len() inline functionsHarald Welte2010-03-011-0/+6
|
* msgb: add msgb->l1h memberHarald Welte2010-03-011-0/+2
|
* fix msgb_talroom() calculationHarald Welte2010-02-241-1/+1
|
* add msgb and tlv support bits required for openbsc gprs branchHarald Welte2010-02-211-1/+12
|
* intial checkin of the libosmocore projectHarald Welte2010-02-201-0/+114