Add sr_ prefix for 'struct session'.

This commit is contained in:
Uwe Hermann 2011-02-08 17:50:29 +01:00
parent 1afe89897c
commit 2872d21ebc
4 changed files with 7 additions and 7 deletions

View File

@ -37,16 +37,16 @@ struct source {
};
/* 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;
}

View File

@ -26,7 +26,7 @@
#include <glib/gstdio.h>
#include <sigrok.h>
extern struct session *session;
extern struct sr_session *session;
extern struct sr_device_plugin session_driver;
@ -37,7 +37,7 @@ int session_load(const char *filename)
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;

View File

@ -98,7 +98,7 @@ typedef void (*datafeed_callback) (struct sr_device *device,
/* 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);

View File

@ -340,7 +340,7 @@ struct sr_device_plugin {
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* */