summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-01-30 22:43:38 +0300
committerHarald Welte <laforge@gnumonks.org>2011-01-30 22:43:38 +0300
commit584b917ced1a3147b50bfb4f0dd780a93147d860 (patch)
tree17c854a89ecff858e79412d020ace8169a091024 /src/host/layer23/include/osmocom/bb/mobile/gsm322.h
parentae55484c1f2a05ffa242c708da7a3ac751626230 (diff)
[mobile] replace 3 different gsm322_makesend_* functions with one
The new function is gsm322_event_input() and uses the event type as a function argument.
Diffstat (limited to 'src/host/layer23/include/osmocom/bb/mobile/gsm322.h')
-rw-r--r--src/host/layer23/include/osmocom/bb/mobile/gsm322.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm322.h b/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
index 3cd275f8..30d96ee7 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
@@ -32,6 +32,13 @@
#define GSM322_PLMN_SEARCH 10
#define GSM322_HPLMN_SEARCH 11
+/* GSM 03.22 event types */
+enum gsm322_evt_type {
+ GSM322_EVT_C, /* direct cell event, no queue */
+ GSM322_EVT_CS, /* enqueue cs->event_queue */
+ GSM322_EVT_PLMN, /* enqueue plmn->event_queue */
+};
+
/* GSM 03.22 events */
#define GSM322_EVENT_SWITCH_ON 1
#define GSM322_EVENT_SWITCH_OFF 2
@@ -172,9 +179,8 @@ struct gsm322_msg {
int gsm322_init(struct osmocom_ms *ms);
int gsm322_exit(struct osmocom_ms *ms);
-int gsm322_makesend_plmn_msg(struct osmocom_ms *ms, int msg_type, uint8_t *data, unsigned int len);
-int gsm322_makesend_cs_event(struct osmocom_ms *ms, int msg_type, uint8_t *data, unsigned int len);
-int gsm322_makesend_c_event(struct osmocom_ms *ms, int msg_type, uint8_t *data, unsigned int len);
+int gsm322_event_input(struct osmocom_ms *ms, enum gsm322_evt_type type,
+ int msg_type, uint8_t *data, unsigned int len);
int gsm322_plmn_dequeue(struct osmocom_ms *ms);
int gsm322_cs_dequeue(struct osmocom_ms *ms);
int gsm322_add_forbidden_la(struct osmocom_ms *ms, uint16_t mcc,