libosmocore/include/osmocom/gprs
Neels Hofmeyr 812ba6dc63 logging: centrally define ctx and filter indexes
It is too easy for calling code to use the same filter and context indexes for
different filters and structs. For example, openbsc's IMSI filter and libgb's
GPRS_BVC filter both fall on index 1 even though there are plenty more indexes
to choose from. To alleviate this, have one central definition here, sort of
like ports.h does for VTY and CTRL port numbers.

Add static asserts to make sure the indexes fit in the available array and bit
mask space.

Calling code like openbsc.git and osmo-pcu need adjustments and/or should move
to using these enum values instead of their local definitions.

Taking this opportunity to also prepare for a split of struct gsm_subscriber in
openbsc into bsc_subsciber and vlr_subscriber with appropriate separate filter
index constants for both subscriber types.

Include previous LOG_FILTER_ALL in the LOGGING_FILTER_* enum, and replace its
use by (1 << LOGGING_FILTER_ALL).

Change-Id: I5c343630020f4b108099696fd96c2111614c8067
2017-02-22 16:08:38 +00:00
..
protocol Add EGPRS RLC/MAC headers from 3GPP TS 04.60 2016-07-12 06:06:33 +00:00
gprs_bssgp.h Add helper function to convert numerical BSSGP PDU type to string 2016-03-11 22:29:39 +07:00
gprs_bssgp_bss.h bssgp: Fix bssgp_tx_fc_bvc parameter type 2015-05-06 17:55:55 +02:00
gprs_msgb.h logging: centrally define ctx and filter indexes 2017-02-22 16:08:38 +00:00
gprs_ns.h gprs: Increase NS_ALLOC_SIZE to 3k 2016-09-23 02:42:46 +00:00
gprs_ns_frgre.h include: Switch to #pragma once pattern 2014-06-16 10:17:27 +02:00
gprs_rlc.h egprs: Add CPS tables from TS 04.60 2016-07-25 18:33:26 +00:00