#ifndef _DEBUG_H #define _DEBUG_H #include #include #define DEBUG #include /* Debug Areas of the code */ enum { DRLL, DCC, DMM, DRR, DRSL, DNM, DMNCC, DSMS, DPAG, DMEAS, DMI, DMIB, DMUX, DINP, DSCCP, DMSC, DMGCP, DHO, DDB, DREF, DGPRS, DNS, DBSSGP, DLLC, DSNDCP, DNAT, Debug_LastEntry, }; /* context */ #define BSC_CTX_LCHAN 0 #define BSC_CTX_SUBSCR 1 #define BSC_CTX_BTS 2 #define BSC_CTX_SCCP 3 #define BSC_CTX_NSVC 4 #define BSC_CTX_BVC 5 /* target */ enum { //DEBUG_FILTER_ALL = 1 << 0, LOG_FILTER_IMSI = 1 << 1, LOG_FILTER_NSVC = 1 << 2, LOG_FILTER_BVC = 1 << 3, }; /* we don't need a header dependency for this... */ struct gprs_nsvc; struct bssgp_bvc_ctx; void log_set_imsi_filter(struct log_target *target, const char *imsi); void log_set_nsvc_filter(struct log_target *target, struct gprs_nsvc *nsvc); void log_set_bvc_filter(struct log_target *target, struct bssgp_bvc_ctx *bctx); extern const struct log_info log_info; #endif /* _DEBUG_H */