* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "config.h"
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <zip.h>
#include <glib.h>
+#include <glib/gstdio.h>
#include <sigrok.h>
-#include <config.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 probe *probe;
+ struct sr_probe *probe;
int ret, err, probenum, devcnt, i, j;
uint64_t tmp_u64, total_probes, enabled_probes, p;
char **sections, **keys, *metafile, *val, c;
GSList *l, *p, *d;
FILE *meta;
struct sr_device *device;
- struct probe *probe;
+ struct sr_probe *probe;
struct datastore *ds;
struct zip *zipfile;
struct zip_source *versrc, *metasrc, *logicsrc;
if ((tmpfile = g_mkstemp(metafile)) == -1)
return SR_ERR;
close(tmpfile);
- meta = fopen(metafile, "wb");
+ meta = g_fopen(metafile, "wb");
fprintf(meta, "[global]\n");
fprintf(meta, "sigrok version = %s\n", PACKAGE_VERSION);
/* TODO: save protocol decoders used */