diff test-fsk/user_cmd.c @ 3:cc997f9ae186

test-fsk: rm TFO code
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 04 Mar 2024 21:22:27 -0800
parents 26383ed8b79f
children 030d52b96a23
line wrap: on
line diff
--- a/test-fsk/user_cmd.c	Mon Mar 04 21:03:19 2024 -0800
+++ b/test-fsk/user_cmd.c	Mon Mar 04 21:22:27 2024 -0800
@@ -1,6 +1,6 @@
 /*
  * In this module we implement stdin command handling, supporting
- * user-initiated CANCEL and BYE as well as TFO testing commands.
+ * user-initiated CANCEL and BYE.
  */
 
 #include <ctype.h>
@@ -33,44 +33,6 @@
 	set_pcm_fill_octet(octet);
 }
 
-static void
-tfo_req_cmd(args)
-	char *args;
-{
-	char *cp;
-	unsigned sig, codec;
-
-	for (cp = args; isspace(*cp); cp++)
-		;
-	if (!isdigit(*cp)) {
-inv_syntax:	fprintf(stderr, "error: tfo-req command invalid syntax\n");
-		return;
-	}
-	sig = strtoul(cp, &cp, 0);
-	if (!isspace(*cp))
-		goto inv_syntax;
-	if (sig > 0xFF) {
-		fprintf(stderr, "error: Sig argument out of range\n");
-		return;
-	}
-	while (isspace(*cp))
-		cp++;
-	if (!isdigit(*cp))
-		goto inv_syntax;
-	codec = strtoul(cp, &cp, 0);
-	if (*cp && !isspace(*cp))
-		goto inv_syntax;
-	if (codec > 14) {
-		fprintf(stderr, "error: Codec_Type argument out of range\n");
-		return;
-	}
-	while (isspace(*cp))
-		cp++;
-	if (*cp)
-		goto inv_syntax;
-	send_tfo_req(sig, codec);
-}
-
 void
 select_stdin()
 {
@@ -93,10 +55,6 @@
 		send_cancel_req();
 	else if (!strncmp(cp, "pcm-fill", 8) && isspace(cp[8]))
 		pcm_fill_cmd(cp + 9);
-	else if (!strncmp(cp, "tfo-req", 7) && isspace(cp[7]))
-		tfo_req_cmd(cp + 8);
-	else if (!strcmp(cp, "tfo-stop"))
-		stop_tfo_out();
 	else
 		fprintf(stderr, "error: non-understood stdin command\n");
 }