changeset 943:31a36b400cdf

fc-shell: replace libg23 with libprint
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 24 May 2023 07:11:18 +0000
parents fab04df64690
children 441004febe35
files rvinterf/asyncshell/Makefile rvinterf/asyncshell/pktsort.c
diffstat 2 files changed, 10 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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