X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=tests%2Fruntc.c;h=096ff1609e638c85b4952302e19b3b721a5dc7eb;hp=af1e3fba961129a3641a4aaa220ad89130ecc779;hb=f6c7eade2b8853b3d525b5cc0402e89ca74c1908;hpb=7023cb9faa3d212b2ba6a0c2f59f93ced0afa547
diff --git a/tests/runtc.c b/tests/runtc.c
index af1e3fb..096ff16 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