]> sigrok.org Git - libsigrok.git/blobdiff - backend.c
Initial Comma-separated values (CSV) input support.
[libsigrok.git] / backend.c
index c29968a4a84cc8d96b5f7431d6866e7a1ac715f0..42817158f4f11e877a53343280e66bbdbd56b342 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -23,6 +23,8 @@
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
 
+extern struct sr_session *session;
+
 /**
  * @mainpage libsigrok API
  *
@@ -287,8 +289,8 @@ static int sanity_check_all_output_modules(void)
                }
 
                /* All modules must provide a data or recv API callback. */
-               if (!outputs[i]->data && !outputs[i]->recv) {
-                       sr_err("No data/recv in module %d ('%s').", i, d);
+               if (!outputs[i]->data && !outputs[i]->receive) {
+                       sr_err("No data/receive in module %d ('%s').", i, d);
                        errors++;
                }
 
@@ -366,6 +368,7 @@ SR_API int sr_init(struct sr_context **ctx)
 
        *ctx = context;
        context = NULL;
+       session = NULL;
        ret = SR_OK;
 
 done: