aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocore/msgb.h
AgeCommit message (Collapse)AuthorFilesLines
2011-03-23include: reorganize headers file to include/osmocom/[gsm|core]0.2.0Pablo Neira Ayuso1-197/+0
This patch moves all GSM-specific definitions to include/osmocom/gsm. Moreover, the headers in include/osmocore/ have been moved to include/osmocom/core. This has been proposed by Harald Welte and Sylvain Munaunt. Tested with `make distcheck'. Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-01-16msgb: Make sure at compile time that headroom is smaller than sizeHolger Hans Peter Freyther1-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.
2010-11-13Move the generate backtrace call from MSGB_ABORT to osmo_panic handlerSylvain Munaut1-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>
2010-11-09msgb: fix printing of msgb pointer during MSGB_ABORT()Harald Welte1-1/+1
2010-11-09msgb: don't compare unsigned int with int (fix lcr build)Harald Welte1-2/+2
2010-11-05msgb_abort(): better formattingHarald Welte1-1/+1
2010-11-05generate backtrace in msgb_abort()Harald Welte1-0/+2
This helps us to debug where we encounter insufficient headroom...
2010-11-05Change msgb_abort() function in MSGB_ABORT argument with variable argumentsHarald Welte1-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.
2010-10-18msgb: Add non-inlined helper functions to ease with language bindingsHolger Hans Peter Freyther1-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.
2010-07-25core/msgb: Use the new osmo_panic call to handle errorsSylvain Munaut1-4/+2
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-07-23msgb: Avoid warnings that the string might contain %s or such..Holger Hans Peter Freyther1-1/+1
2010-07-22msgb: Check for available headroom/tailroom and abort() if we violate itHarald Welte1-4/+31
2010-04-30msgb: introduce msgb->cb (the control buffer)Harald Welte1-0/+4
2010-04-30msgb: remove smsh, llch, tlli and gmmhHarald Welte1-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.
2010-04-30remove the unneeded bts_link pointer from msgbHarald Welte1-5/+0
2010-03-22osmocore: Add a direct l4h to the union of l4h pointersHolger Hans Peter Freyther1-0/+1
This is needed for the BSSAP code of the On Waves/BSC master branch
2010-03-07msgb: Buffer formatting and scanning functions.Ingo Albrecht1-0/+41
2010-03-01add msgb_l1() and msgb_l1len() inline functionsHarald Welte1-0/+6
2010-03-01msgb: add msgb->l1h memberHarald Welte1-0/+2
2010-02-24fix msgb_talroom() calculationHarald Welte1-1/+1
2010-02-21add msgb and tlv support bits required for openbsc gprs branchHarald Welte1-1/+12
2010-02-20intial checkin of the libosmocore projectHarald Welte1-0/+114