diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-06-17 23:34:34 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-06-17 23:34:34 +0800 |
commit | edcba4e307fc6d8cf3de5d22982b1317178e7433 (patch) | |
tree | a8215cc8b1a873fb5dc0515eed8cdc7e76638337 /openbsc/include/osmocom/gprs/gprs_msgb.h | |
parent | b46d56655929e10ca904b4b881ff42584830c0c5 (diff) |
use new external libosmogb (part of libosmocore.git)openbsc/0.12.0
This removes the libgb (GPRS NS/BSSGP) code from the openbsc.git
repository and uses the new version from libosmocore.git instead.
Diffstat (limited to 'openbsc/include/osmocom/gprs/gprs_msgb.h')
-rw-r--r-- | openbsc/include/osmocom/gprs/gprs_msgb.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/openbsc/include/osmocom/gprs/gprs_msgb.h b/openbsc/include/osmocom/gprs/gprs_msgb.h deleted file mode 100644 index f4c855478..000000000 --- a/openbsc/include/osmocom/gprs/gprs_msgb.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef _LIBGB_MSGB_H -#define _LIBGB_MSGB_H - -#include <stdint.h> -/* the data structure stored in msgb->cb for libgb apps */ -struct libgb_msgb_cb { - unsigned char *bssgph; - unsigned char *llch; - - /* Cell Identifier */ - unsigned char *bssgp_cell_id; - - /* Identifiers of a BTS, equal to 'struct bssgp_bts_ctx' */ - uint16_t nsei; - uint16_t bvci; - - /* Identifier of a MS (inside BTS), equal to 'struct sgsn_mm_ctx' */ - uint32_t tlli; -} __attribute__((packed)); -#define LIBGB_MSGB_CB(__msgb) ((struct libgb_msgb_cb *)&((__msgb)->cb[0])) -#define msgb_tlli(__x) LIBGB_MSGB_CB(__x)->tlli -#define msgb_nsei(__x) LIBGB_MSGB_CB(__x)->nsei -#define msgb_bvci(__x) LIBGB_MSGB_CB(__x)->bvci -#define msgb_gmmh(__x) (__x)->l3h -#define msgb_bssgph(__x) LIBGB_MSGB_CB(__x)->bssgph -#define msgb_bssgp_len(__x) ((__x)->tail - (uint8_t *)msgb_bssgph(__x)) -#define msgb_bcid(__x) LIBGB_MSGB_CB(__x)->bssgp_cell_id -#define msgb_llch(__x) LIBGB_MSGB_CB(__x)->llch - -/* logging contexts */ -#define GPRS_CTX_NSVC 0 -#define GPRS_CTX_BVC 1 - -#include <osmocom/core/logging.h> -int gprs_log_filter_fn(const struct log_context *ctx, - struct log_target *tar); -#endif |