diff options
author | Harald Welte <laforge@osmocom.org> | 2022-11-30 18:07:36 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-11-30 18:11:29 +0100 |
commit | ce70074476a95b159573884fa34b75c2f64c4508 (patch) | |
tree | aeb23d70cd8bdb0ab5ff0a47b0d41e39c6abc439 | |
parent | 9d90eb99607143499ef5483f3c41934f0922d1de (diff) |
trau_sync: Fix typo tray_sync_pat_id -> trau_sync_pat_id
... plus add a #define for compatibility with old source code.
Change-Id: I472107bfbed10a8cadd4736ce84120b24a5579f8
-rw-r--r-- | include/osmocom/trau/trau_sync.h | 9 | ||||
-rw-r--r-- | src/trau/trau_sync.c | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/include/osmocom/trau/trau_sync.h b/include/osmocom/trau/trau_sync.h index ffda02a..c40727c 100644 --- a/include/osmocom/trau/trau_sync.h +++ b/include/osmocom/trau/trau_sync.h @@ -2,7 +2,10 @@ #include <osmocom/core/bits.h> #include <osmocom/core/fsm.h> -enum osmo_tray_sync_pat_id { +/* backwards compatibility */ +#define osmo_tray_sync_pat_id osmo_trau_sync_pat_id + +enum osmo_trau_sync_pat_id { OSMO_TRAU_SYNCP_16_FR_EFR, OSMO_TRAU_SYNCP_8_HR, OSMO_TRAU_SYNCP_8_AMR_LOW, @@ -15,7 +18,7 @@ typedef void (*frame_out_cb_t)(void *user_data, const ubit_t *bits, unsigned int struct osmo_fsm_inst * osmo_trau_sync_alloc(void *ctx, const char *name, frame_out_cb_t frame_out_cb, - enum osmo_tray_sync_pat_id pat_id, void *user_data); + enum osmo_trau_sync_pat_id pat_id, void *user_data); void osmo_trau_sync_rx_ubits(struct osmo_fsm_inst *fi, const ubit_t *bits, size_t n_bits); -void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_tray_sync_pat_id pat_id); +void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_trau_sync_pat_id pat_id); diff --git a/src/trau/trau_sync.c b/src/trau/trau_sync.c index b36e7c1..814ed88 100644 --- a/src/trau/trau_sync.c +++ b/src/trau/trau_sync.c @@ -492,7 +492,7 @@ static struct osmo_fsm trau_sync_fsm = { struct osmo_fsm_inst * osmo_trau_sync_alloc(void *ctx, const char *name, frame_out_cb_t frame_out_cb, - enum osmo_tray_sync_pat_id pat_id, void *user_data) + enum osmo_trau_sync_pat_id pat_id, void *user_data) { struct trau_rx_sync_state *tss; struct osmo_fsm_inst *fi; @@ -523,7 +523,7 @@ osmo_trau_sync_alloc(void *ctx, const char *name, frame_out_cb_t frame_out_cb, return fi; } -void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_tray_sync_pat_id pat_id) +void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_trau_sync_pat_id pat_id) { struct trau_rx_sync_state *tss = fi->priv; |