/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
*
* Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
* Copyright (C) 2012 Peter Stuge <peter@stuge.se>
#include "libsigrok.h"
#include "libsigrok-internal.h"
+extern struct sr_session *session;
+
/**
* @mainpage libsigrok API
*
}
/* 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++;
}
*ctx = context;
context = NULL;
+ session = NULL;
ret = SR_OK;
done: