};
/* There can only be one session at a time. */
-struct session *session;
+struct sr_session *session;
int num_sources = 0;
struct source *sources = NULL;
int source_timeout = -1;
-struct session *session_new(void)
+struct sr_session *session_new(void)
{
- session = calloc(1, sizeof(struct session));
+ session = calloc(1, sizeof(struct sr_session));
return session;
}
#include <glib/gstdio.h>
#include <sigrok.h>
-extern struct session *session;
+extern struct sr_session *session;
extern struct sr_device_plugin session_driver;
struct zip *archive;
struct zip_file *zf;
struct zip_stat zs;
- struct session *session;
+ struct sr_session *session;
struct sr_device *device;
struct sr_probe *probe;
int ret, err, probenum, devcnt, i, j;
/* Session setup */
int session_load(const char *filename);
-struct session *session_new(void);
+struct sr_session *session_new(void);
void session_destroy(void);
void session_device_clear(void);
int session_device_add(struct sr_device *device);
void (*stop_acquisition) (int device_index, gpointer session_device_id);
};
-struct session {
+struct sr_session {
/* List of struct sr_device* */
GSList *devices;
/* List of struct analyzer* */