GVariantBuilder gvb;
int i;
- (void)sdi;
-
switch (key) {
case SR_CONF_DEVICE_OPTIONS:
*data = g_variant_new_fixed_array(G_VARIANT_TYPE_INT32,
static int hw_dev_open(struct sr_dev_inst *sdi)
{
- (void)sdi;
-
sdi->status = SR_ST_ACTIVE;
return SR_OK;
static int hw_dev_close(struct sr_dev_inst *sdi)
{
- (void)sdi;
-
- sdi->status = SR_ST_INACTIVE;
+ sdi->status = SR_ST_INACTIVE;
return SR_OK;
}
char *e, *u;
gboolean is_oor;
- (void)sdi;
-
if (strcmp(tokens[0], "QM") || !tokens[1])
return NULL;
float fvalue;
char *eptr;
- (void)sdi;
-
if (!tokens[1])
return NULL;
devc->limit_samples = 0;
devc->sample_wide = 0;
-
return devc;
}
GVariantBuilder gvb;
unsigned int i;
- (void)sdi;
-
if (!sdi)
return SR_ERR_ARG;
GSList *usb_devices, *devices, *l;
const char *conn;
- (void)options;
-
drvc = di->priv;
conn = NULL;
struct udev *udev;
int ptype;
- (void)options;
-
for (l = options; l; l = l->next) {
src = l->data;
switch (src->key) {
int i;
const char *conn;
- (void)options;
-
drvc = di->priv;
conn = NULL;
const char *conn, *serialcomm;
char buf[8];
- (void)options;
-
drvc = di->priv;
devices = NULL;
static int dev_acquisition_stop(struct sr_dev_inst *sdi, void *cb_data)
{
- /* Avoid compiler warnings. */
(void)cb_data;
abort_acquisition(sdi);
int len, i, waveform_size;
struct sr_probe *probe;
- (void) fd;
+ (void)fd;
if (!(sdi = cb_data))
return TRUE;