]> sigrok.org Git - sigrok-test.git/commitdiff
Update due to sr_session_load() API change.
authorUwe Hermann <redacted>
Sun, 29 Mar 2015 23:31:11 +0000 (01:31 +0200)
committerUwe Hermann <redacted>
Sun, 29 Mar 2015 23:31:11 +0000 (01:31 +0200)
decoder/runtc.c

index 2193309881b6ed4cc85591d159a94518db1fb1a9..557702957c5445f8ec10945a7cff9e52ee81240b 100644 (file)
@@ -40,6 +40,7 @@
 int debug = FALSE;
 int statistics = FALSE;
 char *coverage_report;
+struct sr_context *ctx;
 
 struct channel {
        char *name;
@@ -354,7 +355,7 @@ static int run_testcase(char *infile, GSList *pdlist, struct output *op)
                }
        }
 
-       if (sr_session_load(infile, &sr_sess) != SR_OK)
+       if (sr_session_load(ctx, infile, &sr_sess) != SR_OK)
                return FALSE;
 
        sr_session_dev_list(sr_sess, &devices);
@@ -709,7 +710,6 @@ static int report_coverage(PyObject *py_cov, GSList *pdlist)
 
 int main(int argc, char **argv)
 {
-       struct sr_context *ctx;
        PyObject *coverage;
        GSList *pdlist;
        struct pd *pd;