Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/2031

to look at the new patch set (#4).

gsm_data_shared: add value strings for gsm_chreq

Change-Id: I23d3be5610a5a46098d2b12feed4245828599aae
---
M openbsc/include/openbsc/gsm_data_shared.h
M openbsc/src/libcommon/gsm_data_shared.c
2 files changed, 11 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/31/2031/4

diff --git a/openbsc/include/openbsc/gsm_data_shared.h 
b/openbsc/include/openbsc/gsm_data_shared.h
index e697cb8..9e51568 100644
--- a/openbsc/include/openbsc/gsm_data_shared.h
+++ b/openbsc/include/openbsc/gsm_data_shared.h
@@ -841,7 +841,7 @@
 struct gsm_bts_trx *gsm_bts_trx_alloc(struct gsm_bts *bts);
 struct gsm_bts_trx *gsm_bts_trx_num(const struct gsm_bts *bts, int num);
 
-
+const struct value_string gsm_chreq_descs[7];
 const struct value_string gsm_pchant_names[13];
 const struct value_string gsm_pchant_descs[13];
 const char *gsm_pchan_name(enum gsm_phys_chan_config c);
diff --git a/openbsc/src/libcommon/gsm_data_shared.c 
b/openbsc/src/libcommon/gsm_data_shared.c
index 387af70..dc1cf8d 100644
--- a/openbsc/src/libcommon/gsm_data_shared.c
+++ b/openbsc/src/libcommon/gsm_data_shared.c
@@ -51,6 +51,16 @@
        gsm_abis_mo_reset(mo);
 }
 
+const struct value_string gsm_chreq_descs[7] = {
+       { GSM_CHREQ_REASON_EMERG,       "emergency call" },
+       { GSM_CHREQ_REASON_PAG,         "answer to paging" },
+       { GSM_CHREQ_REASON_CALL,        "call re-establishment" },
+       { GSM_CHREQ_REASON_LOCATION_UPD,"Location updating" },
+       { GSM_CHREQ_REASON_PDCH,        "one phase packet access" },
+       { GSM_CHREQ_REASON_OTHER,       "other" },
+       { 0,                            NULL }
+};
+
 const struct value_string gsm_pchant_names[13] = {
        { GSM_PCHAN_NONE,       "NONE" },
        { GSM_PCHAN_CCCH,       "CCCH" },

-- 
To view, visit https://gerrit.osmocom.org/2031
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I23d3be5610a5a46098d2b12feed4245828599aae
Gerrit-PatchSet: 4
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <[email protected]>
Gerrit-Reviewer: Harald Welte <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <[email protected]>
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>

Reply via email to