# HG changeset patch # User Mychaela Falconia # Date 1684912278 0 # Node ID 31a36b400cdf955b7986ce00aad58e4addb1fb1f # Parent fab04df646905f9052238448ee3c8a44c0f9622f fc-shell: replace libg23 with libprint diff -r fab04df64690 -r 31a36b400cdf rvinterf/asyncshell/Makefile --- a/rvinterf/asyncshell/Makefile Wed May 24 06:55:54 2023 +0000 +++ b/rvinterf/asyncshell/Makefile Wed May 24 07:11:18 2023 +0000 @@ -5,8 +5,7 @@ OBJS= at.o battery.o help.o init.o keypress.o main.o oneshot.o parse.o \ pktsort.o poweroff.o rxctl.o sendarb.o sendsp.o tchcmd.o tchplay.o \ tchrec.o usercmd.o -LIBS= ../libasync/libasync.a ../libg23/libg23.a ../libprint/libprint.a \ - ../libinterf/libinterf.a +LIBS= ../libasync/libasync.a ../libprint/libprint.a ../libinterf/libinterf.a INSTALL_PREFIX= /opt/freecalypso diff -r fab04df64690 -r 31a36b400cdf rvinterf/asyncshell/pktsort.c --- a/rvinterf/asyncshell/pktsort.c Wed May 24 06:55:54 2023 +0000 +++ b/rvinterf/asyncshell/pktsort.c Wed May 24 07:11:18 2023 +0000 @@ -17,6 +17,8 @@ extern int rvi_msg_len; extern int oneshot_mode; +extern void async_msg_output(); + static void process_rvt() { @@ -42,12 +44,15 @@ } static void +discard_cont_out() +{ +} + +static void gpf_packet_rx() { - char fmtbuf[MAX_PKT_FROM_TARGET*8]; /* size it generously */ - - format_g23_packet(rvi_msg + 1, rvi_msg_len - 1, fmtbuf); - async_msg_output(fmtbuf); + format_gpf_packet(rvi_msg + 1, rvi_msg_len - 1, "", async_msg_output, + discard_cont_out); } static void