/*
* This file is part of the sigrok project.
*
- * Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
+ * Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
}
/* Create a virtual device. */
- in->vdevice = sr_device_new(NULL, 0);
+ in->vdevice = sr_dev_new(NULL, 0);
for (i = 0; i < num_probes; i++) {
snprintf(name, SR_MAX_PROBENAME_LEN, "%d", i);
/* TODO: Check return value. */
- sr_device_probe_add(in->vdevice, name);
+ sr_dev_probe_add(in->vdevice, name);
}
return SR_OK;
/* send header */
header.feed_version = 1;
header.num_logic_probes = num_probes;
- header.num_analog_probes = 0;
header.samplerate = 0;
gettimeofday(&header.starttime, NULL);
packet.type = SR_DF_HEADER;
return SR_OK;
}
-struct sr_input_format input_binary = {
+SR_PRIV struct sr_input_format input_binary = {
.id = "binary",
.description = "Raw binary",
.format_match = format_match,