| 1 | /*! \addtogroup sms |
| 2 | * @{ |
| 3 | * \file gsm0411_smr.h */ |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include <osmocom/gsm/protocol/gsm_04_11.h>cxx . . $ `<file>/include/osmocom/gsm/protocol/gsm_04_11.h`/ |
| 8 | |
| 9 | #define GSM411_SM_RL_DATA_REQcxx . . $ `include/osmocom/gsm/gsm0411_smr.h:9:9`! 0x401 |
| 10 | #define GSM411_SM_RL_DATA_INDcxx . . $ `include/osmocom/gsm/gsm0411_smr.h:10:9`! 0x402 |
| 11 | #define GSM411_SM_RL_MEM_AVAIL_REQcxx . . $ `include/osmocom/gsm/gsm0411_smr.h:11:9`! 0x403 |
| 12 | #define GSM411_SM_RL_MEM_AVAIL_INDcxx . . $ `include/osmocom/gsm/gsm0411_smr.h:12:9`! 0x404 |
| 13 | #define GSM411_SM_RL_REPORT_REQcxx . . $ `include/osmocom/gsm/gsm0411_smr.h:13:9`! 0x405 |
| 14 | #define GSM411_SM_RL_REPORT_INDcxx . . $ `include/osmocom/gsm/gsm0411_smr.h:14:9`! 0x406 |
| 15 | |
| 16 | struct gsm411_smr_instcxx . . $ gsm411_smr_inst# { |
| 17 | uint64_tcxx . . $ uint64_t# idcxx . . $ gsm411_smr_inst#id.; /* a unique id for the SMS */ |
| 18 | int networkcxx . . $ gsm411_smr_inst#network.; /* is this a MO (0) or MT (1) transfer */ |
| 19 | int (*rl_recvcxx . . $ gsm411_smr_inst#rl_recv.) (struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, int msg_type, |
| 20 | struct msgbcxx . . $ msgb# *msg); |
| 21 | int (*mn_sendcxx . . $ gsm411_smr_inst#mn_send.) (struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, int msg_type, |
| 22 | struct msgbcxx . . $ msgb# *msg); |
| 23 | |
| 24 | enum gsm411_rp_statecxx . . $ gsm411_rp_state# rp_statecxx . . $ gsm411_smr_inst#rp_state.; |
| 25 | struct osmo_timer_listcxx . . $ osmo_timer_list# rp_timercxx . . $ gsm411_smr_inst#rp_timer.; |
| 26 | }; |
| 27 | |
| 28 | extern const struct value_stringcxx . . $ value_string# gsm411_rp_cause_strscxx . . $ gsm411_rp_cause_strs.[]; |
| 29 | |
| 30 | /* init a new instance */ |
| 31 | void gsm411_smr_initcxx . . $ gsm411_smr_init(682619ba044e0bdd).(struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, uint64_tcxx . . $ uint64_t# id, int network, |
| 32 | int (*rl_recv) (struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, int msg_type, |
| 33 | struct msgbcxx . . $ msgb# *msg), |
| 34 | int (*mn_send) (struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, int msg_type, |
| 35 | struct msgbcxx . . $ msgb# *msg)); |
| 36 | |
| 37 | /* clear instance */ |
| 38 | void gsm411_smr_clearcxx . . $ gsm411_smr_clear(b130fb8eea5ff5c4).(struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst); |
| 39 | |
| 40 | /* message from upper layer */ |
| 41 | int gsm411_smr_sendcxx . . $ gsm411_smr_send(356673ce713d9e6f).(struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, int msg_type, |
| 42 | struct msgbcxx . . $ msgb# *msg); |
| 43 | |
| 44 | /* message from lower layer */ |
| 45 | int gsm411_smr_recvcxx . . $ gsm411_smr_recv(356673ce713d9e6f).(struct gsm411_smr_instcxx . . $ gsm411_smr_inst# *inst, int msg_type, |
| 46 | struct msgbcxx . . $ msgb# *msg); |
| 47 | |
| 48 | extern const struct value_stringcxx . . $ value_string# gsm411_rp_state_namescxx . . $ gsm411_rp_state_names.[]; |
| 49 | |
| 50 | static inlinecxx . . $ `include/osmocom/core/linuxlist.h:22:9`! const char *gsm411_rp_state_namecxx . . $ gsm411_rp_state_name(3ca272503197303a).(enum gsm411_rp_statecxx . . $ gsm411_rp_state# rp_state) { |
| 51 | return get_value_stringcxx . . $ get_value_string(c9db86ff1f80b9ea).(gsm411_rp_state_namescxx . . $ gsm411_rp_state_names., rp_state); |
| 52 | } |
| 53 | |
| 54 | /*! @} */ |