aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-14 06:07:47 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-22 00:41:50 +0100
commitbcf125c524482a442fd27938036a18f9bcc6e265 (patch)
treeedc57348432ce416108776fe11de1b3c887aa447 /include
parent33e8a87cd7306fa365d6de0549ed2397edbf4df9 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/gsm0411_smr.h3
1 files changed, 2 insertions, 1 deletions
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,