diff sw/sniff-dec/command.c @ 41:118a12e9483b

simtrace3-sniff-dec started
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 31 Aug 2023 08:46:23 +0000
parents
children b0524d1dc6ef
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sw/sniff-dec/command.c	Thu Aug 31 08:46:23 2023 +0000
@@ -0,0 +1,23 @@
+/*
+ * Here we implement decoding of command APDU exchanges.
+ */
+
+#include <sys/types.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include "state.h"
+
+extern char linebuf[];
+extern int lineno;
+extern unsigned rx_byte;
+extern int state;
+
+void
+start_cmd_header()
+{
+	printf("input line %d: command header, end of implementation so far\n",
+		lineno);
+	exit(0);
+}