X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=tests%2Fruntc.c;h=11ae560dbea4766c63872d09018dbf9b333a6e66;hp=af1e3fba961129a3641a4aaa220ad89130ecc779;hb=1f6f2ad8c33e58cfd40ea0370e6d2dfbd6040026;hpb=7023cb9faa3d212b2ba6a0c2f59f93ced0afa547
diff --git a/tests/runtc.c b/tests/runtc.c
index af1e3fb..11ae560 100644
--- a/tests/runtc.c
+++ b/tests/runtc.c
@@ -17,6 +17,7 @@
* along with this program. If not, see .
*/
+#include
#include "../libsigrokdecode.h"
#include
#include
@@ -35,25 +36,25 @@
#ifdef __LINUX__
#include
#endif
-#include "../config.h"
+#include "config.h"
int debug = FALSE;
int statistics = FALSE;
char *coverage_report;
-struct probe {
+struct channel {
char *name;
- int probe;
+ int channel;
};
struct option {
char *key;
- char *value;
+ GVariant *value;
};
struct pd {
char *name;
- GSList *probes;
+ GSList *channels;
GSList *options;
};
@@ -140,8 +141,8 @@ static void usage(char *msg)
printf("Usage: runtc [-dPpoiOf]\n");
printf(" -d Debug\n");
printf(" -P \n");
- printf(" -p (optional)\n");
- printf(" -o (optional)\n");
+ printf(" -p (optional)\n");
+ printf(" -o (optional)\n");
printf(" -i \n");
printf(" -O \n");
printf(" -f