From bcf125c524482a442fd27938036a18f9bcc6e265 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 14 Nov 2012 06:07:47 +0100 Subject: smr: Introduce an id and prefix all log messages with SMR(ID) When OpenBSC is handling more than one message at a time it is difficult to see which log message belongs to which SMR instance. Introduce a uint64_t id that can be set to the row_id/message_id and prefix all log messages with SMR(ID). This change is ABI and API incompatible with previous versions of libosmogsm. --- include/osmocom/gsm/gsm0411_smr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/osmocom') diff --git a/include/osmocom/gsm/gsm0411_smr.h b/include/osmocom/gsm/gsm0411_smr.h index 5ea8584d..b0614924 100644 --- a/include/osmocom/gsm/gsm0411_smr.h +++ b/include/osmocom/gsm/gsm0411_smr.h @@ -11,6 +11,7 @@ #define GSM411_SM_RL_REPORT_IND 0x406 struct gsm411_smr_inst { + uint64_t id; /* a unique id for the SMS */ int network; /* is this a MO (0) or MT (1) transfer */ int (*rl_recv) (struct gsm411_smr_inst *inst, int msg_type, struct msgb *msg); @@ -24,7 +25,7 @@ struct gsm411_smr_inst { extern const struct value_string gsm411_rp_cause_strs[]; /* init a new instance */ -void gsm411_smr_init(struct gsm411_smr_inst *inst, int network, +void gsm411_smr_init(struct gsm411_smr_inst *inst, uint64_t id, int network, int (*rl_recv) (struct gsm411_smr_inst *inst, int msg_type, struct msgb *msg), int (*mn_send) (struct gsm411_smr_inst *inst, int msg_type, -- cgit v1.2.3