![]() |
libsigrok
0.2.2
sigrok hardware access and backend library
|
Loading and saving libsigrok session files. More...
#include <string.h>#include <stdlib.h>#include <unistd.h>#include <zip.h>#include <glib.h>#include <glib/gstdio.h>#include "config.h"#include "libsigrok.h"#include "libsigrok-internal.h"
Include dependency graph for session_file.c:Go to the source code of this file.
Macros | |
| #define | LOG_PREFIX "session-file: " |
| #define | sr_log(l, s, args...) sr_log(l, LOG_PREFIX s, ## args) |
| #define | sr_spew(s, args...) sr_spew(LOG_PREFIX s, ## args) |
| #define | sr_dbg(s, args...) sr_dbg(LOG_PREFIX s, ## args) |
| #define | sr_info(s, args...) sr_info(LOG_PREFIX s, ## args) |
| #define | sr_warn(s, args...) sr_warn(LOG_PREFIX s, ## args) |
| #define | sr_err(s, args...) sr_err(LOG_PREFIX s, ## args) |
Functions | |
| int | sr_session_load (const char *filename) |
| Load the session from the specified filename. More... | |
| int | sr_session_save (const char *filename, const struct sr_dev_inst *sdi, unsigned char *buf, int unitsize, int units) |
| Save the current session to the specified file. More... | |
Variables | |
| struct sr_session * | session |
| SR_PRIV struct sr_dev_driver | session_driver |
Loading and saving libsigrok session files.
Definition in file session_file.c.
| #define LOG_PREFIX "session-file: " |
Definition at line 31 of file session_file.c.
| #define sr_dbg | ( | s, | |
| args... | |||
| ) | sr_dbg(LOG_PREFIX s, ## args) |
Definition at line 34 of file session_file.c.
Referenced by sr_session_load().
| #define sr_err | ( | s, | |
| args... | |||
| ) | sr_err(LOG_PREFIX s, ## args) |
Definition at line 37 of file session_file.c.
Referenced by sr_session_load(), and sr_session_save().
| #define sr_info | ( | s, | |
| args... | |||
| ) | sr_info(LOG_PREFIX s, ## args) |
Definition at line 35 of file session_file.c.
Referenced by sr_session_save().
| #define sr_log | ( | l, | |
| s, | |||
| args... | |||
| ) | sr_log(l, LOG_PREFIX s, ## args) |
Definition at line 32 of file session_file.c.
| #define sr_spew | ( | s, | |
| args... | |||
| ) | sr_spew(LOG_PREFIX s, ## args) |
Definition at line 33 of file session_file.c.
| #define sr_warn | ( | s, | |
| args... | |||
| ) | sr_warn(LOG_PREFIX s, ## args) |
Definition at line 36 of file session_file.c.
1.8.5