X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=tests%2Finput_binary.c;h=bef604172e06440038123f4ead8934b13c184e4b;hp=403f7307a2de33936cc3faa251b8dba3f68476a2;hb=2622b4297fd4cc4bed5c06bb6ae0aaa8b40e0ece;hpb=1a46cc62e2b528bcaeb1f8dc0c952a81b3bcba5c diff --git a/tests/input_binary.c b/tests/input_binary.c index 403f7307..bef60417 100644 --- a/tests/input_binary.c +++ b/tests/input_binary.c @@ -14,13 +14,13 @@ * 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 . */ +#include #include #include -#include "../include/libsigrok/libsigrok.h" +#include #include "lib.h" #define BUFSIZE (1000 * 1000) @@ -208,7 +208,7 @@ static void check_buf(GHashTable *options, const uint8_t *buf, int check, 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);