X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoder%2Fruntc.c;h=f24a180ac4eb720d1a1dc299a0697aa97dafd4c6;hb=450d475b2bfc3e73d56580e0061a508fa67972b0;hp=bbeb40ef04ecc3929ce86707b73685f2c4eb5d02;hpb=6688fad431faf47bcfd310af65a8c753204ad883;p=sigrok-test.git
diff --git a/decoder/runtc.c b/decoder/runtc.c
index bbeb40e..f24a180 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -17,6 +17,8 @@
* along with this program. If not, see .
*/
+#include
+
#include
#include
#include
@@ -52,16 +54,23 @@ struct option {
GVariant *value;
};
+struct initial_pin_info {
+ char *name;
+ int value;
+};
+
struct pd {
const char *name;
GSList *channels;
GSList *options;
+ GSList *initial_pins;
};
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;
@@ -136,15 +145,17 @@ static void usage(const char *msg)
if (msg)
fprintf(stderr, "%s\n", msg);
- printf("Usage: runtc [-dPpoiOf]\n");
- printf(" -d Debug\n");
- printf(" -P \n");
- printf(" -p (optional)\n");
- printf(" -o (optional)\n");
+ printf("Usage: runtc [-dPpoiOfcS]\n");
+ printf(" -d (enables debug output)\n");
+ printf(" -P \n");
+ printf(" -p (optional)\n");
+ printf(" -o (optional)\n");
+ printf(" -N (optional)\n");
printf(" -i \n");
printf(" -O \n");
printf(" -f