Change in libosmo-abis[master]: trau_sync: Fix typo tray_sync_pat_id -> trau_sync_pat_id
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-abis/+/30396 ) Change subject: trau_sync: Fix typo tray_sync_pat_id -> trau_sync_pat_id ...................................................................... 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 --- M include/osmocom/trau/trau_sync.h M src/trau/trau_sync.c 2 files changed, 8 insertions(+), 5 deletions(-) Approvals: Jenkins Builder: Verified fixeria: Looks good to me, but someone else must approve pespin: Looks good to me, approved 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 @@ 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 @@ 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 @@ 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; -- To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/30396 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmo-abis Gerrit-Branch: master Gerrit-Change-Id: I472107bfbed10a8cadd4736ce84120b24a5579f8 Gerrit-Change-Number: 30396 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge@osmocom.org> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-MessageType: merged
participants (1)
-
laforge