g_critical("Error: no input module found for this file.");
}
sr_session_new(sr_ctx, &session);
- sr_session_datafeed_callback_add(session, &datafeed_in, NULL);
+ sr_session_datafeed_callback_add(session, &datafeed_in, session);
got_sdi = FALSE;
while (TRUE) {
}
main_loop = g_main_loop_new(NULL, FALSE);
- sr_session_datafeed_callback_add(session, datafeed_in, NULL);
+ sr_session_datafeed_callback_add(session, datafeed_in, session);
sr_session_stopped_callback_set(session,
(sr_session_stopped_callback)g_main_loop_quit,
main_loop);
g_slist_free(real_devices);
sr_session_new(sr_ctx, &session);
- sr_session_datafeed_callback_add(session, datafeed_in, NULL);
+ sr_session_datafeed_callback_add(session, datafeed_in, session);
if (sr_dev_open(sdi) != SR_OK) {
g_critical("Failed to open device.");