X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=decoder%2Fruntc.c;h=f24a180ac4eb720d1a1dc299a0697aa97dafd4c6;hb=450d475b2bfc3e73d56580e0061a508fa67972b0;hp=c31b7d3d1ddea03dda8e1c7c965013d6f800b3f6;hpb=31ddb2fea0f6c1e0241ae92222cc20c801bda2f5;p=sigrok-test.git
diff --git a/decoder/runtc.c b/decoder/runtc.c
index c31b7d3..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,17 +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;
@@ -142,6 +150,7 @@ static void usage(const char *msg)
printf(" -P \n");
printf(" -p (optional)\n");
printf(" -o (optional)\n");
+ printf(" -N (optional)\n");
printf(" -i \n");
printf(" -O \n");
printf(" -f