Skip to content

Commit b6057b3

Browse files
committed
dnn: add compatibility shims for lpcnet PLC API (map lpcnet_plc_* to oaci_lpcnet_plc_*)
1 parent 6e6aac9 commit b6057b3

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

dnn/lpcnet.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,34 @@ void oaci_lpcnet_plc_fec_clear(LPCNetPLCState *st);
182182
int lpcnet_load_model(LPCNetState *st, const void *data, int len);
183183
int oaci_lpcnet_plc_load_model(LPCNetPLCState *st, const void *data, int len);
184184

185+
/* Backwards compatibility: map older API names to oaci_ variants so callers using
186+
the older names keep building. */
187+
#ifndef lpcnet_plc_init
188+
# define lpcnet_plc_init oaci_lpcnet_plc_init
189+
#endif
190+
191+
#ifndef lpcnet_plc_reset
192+
# define lpcnet_plc_reset oaci_lpcnet_plc_reset
193+
#endif
194+
195+
#ifndef lpcnet_plc_update
196+
# define lpcnet_plc_update oaci_lpcnet_plc_update
197+
#endif
198+
199+
#ifndef lpcnet_plc_conceal
200+
# define lpcnet_plc_conceal oaci_lpcnet_plc_conceal
201+
#endif
202+
203+
#ifndef lpcnet_plc_fec_add
204+
# define lpcnet_plc_fec_add oaci_lpcnet_plc_fec_add
205+
#endif
206+
207+
#ifndef lpcnet_plc_fec_clear
208+
# define lpcnet_plc_fec_clear oaci_lpcnet_plc_fec_clear
209+
#endif
210+
211+
#ifndef lpcnet_plc_load_model
212+
# define lpcnet_plc_load_model oaci_lpcnet_plc_load_model
213+
#endif
214+
185215
#endif

0 commit comments

Comments
 (0)