* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <config.h>
#include <check.h>
#include <glib/gstdio.h>
-#include "../include/libsigrok/libsigrok.h"
+#include <libsigrok/libsigrok.h>
#include "lib.h"
-#define BUFSIZE 1000000
+#define BUFSIZE (1000 * 1000)
enum {
CHECK_ALL_LOW,
sdi = sr_input_dev_inst_get(in);
- sr_session_new(&session);
+ sr_session_new(srtest_ctx, &session);
sr_session_datafeed_callback_add(session, datafeed_in, NULL);
sr_session_dev_add(session, sdi);