X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-test.git;a=blobdiff_plain;f=decoder%2Fruntc.c;h=896935bfc81d02909a78ffb5d3e310786459661a;hp=90c37b64b76746ed7391b8ae20c90c0703b3310e;hb=HEAD;hpb=c0aa6cc18187301b4d0c014e24ddf06815fb7c50
diff --git a/decoder/runtc.c b/decoder/runtc.c
index 90c37b6..0748826 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -17,6 +17,8 @@
* along with this program. If not, see .
*/
+#include
+
#include
#include
#include
@@ -37,6 +39,8 @@
#include
#endif
+#define CHUNK_SIZE (4 * 1024 * 1024)
+
static int debug = FALSE;
static int statistics = FALSE;
static char *coverage_report;
@@ -64,11 +68,18 @@ struct pd {
GSList *initial_pins;
};
+struct input {
+ const char *filename;
+ const char *format;
+ GSList *opt_list;
+ GHashTable *opt_hash;
+};
+
struct output {
const char *pd;
const char *pd_id;
int type;
- const char *class;
+ const char *class_;
int class_idx;
const char *outfile;
int outfd;
@@ -150,6 +161,7 @@ static void usage(const char *msg)
printf(" -o (optional)\n");
printf(" -N (optional)\n");
printf(" -i \n");
+ printf(" -I (optional)\n");
printf(" -O \n");
printf(" -f