Add sr_ prefix for 'struct session'.
This commit is contained in:
parent
1afe89897c
commit
2872d21ebc
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue