X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fdemo%2Fdemo.c;h=6bacaf03b85e0c530e300082171b692c8cd53e74;hb=6f1be0a2d40b3998abd8d10b5479e4538bc4ff1e;hp=734b01da6bb86b61667bc972d7e150a1366666b8;hpb=77b454421a2aa7d52873f036e5ba5f8030fe29a3;p=libsigrok.git diff --git a/hardware/demo/demo.c b/hardware/demo/demo.c index 734b01da..6bacaf03 100644 --- a/hardware/demo/demo.c +++ b/hardware/demo/demo.c @@ -363,8 +363,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id) g_io_channel_set_buffered(channels[0], FALSE); g_io_channel_set_buffered(channels[1], FALSE); - source_add(mydata->pipe_fds[0], G_IO_IN | G_IO_ERR, 40, receive_data, - session_device_id); + sr_source_add(mydata->pipe_fds[0], G_IO_IN | G_IO_ERR, 40, + receive_data, session_device_id); /* Run the demo thread. */ g_thread_init(NULL);