if (!in)
g_critical("Error: no input module found for this file.");
}
- sr_session_new(&session);
+ sr_session_new(sr_ctx, &session);
sr_session_datafeed_callback_add(session, &datafeed_in, NULL);
got_sdi = FALSE;
/* Input from stdin is never a session file. */
load_input_file_module();
} else {
- if ((ret = sr_session_load(opt_input_file, &session)) == SR_OK) {
+ if ((ret = sr_session_load(sr_ctx, opt_input_file,
+ &session)) == SR_OK) {
/* sigrok session file */
ret = sr_session_dev_list(session, &devices);
if (ret != SR_OK || !devices || !devices->data) {
g_slist_free(devices);
g_slist_free(real_devices);
- sr_session_new(&session);
+ sr_session_new(sr_ctx, &session);
sr_session_datafeed_callback_add(session, datafeed_in, NULL);
if (sr_dev_open(sdi) != SR_OK) {
#define SAVE_CHUNK_SIZE (512 * 1024)
/* main.c */
+struct sr_context *sr_ctx;
int select_channels(struct sr_dev_inst *sdi);
gboolean config_key_has_cap(struct sr_dev_driver *driver,
const struct sr_dev_inst *sdi, struct sr_channel_group *cg,