void device_probe_clear(struct sr_device *device, int probenum)
{
- struct probe *p;
+ struct sr_probe *p;
p = probe_find(device, probenum);
if (!p)
void device_probe_add(struct sr_device *device, char *name)
{
- struct probe *p;
+ struct sr_probe *p;
char probename[16];
int probenum;
probenum = g_slist_length(device->probes) + 1;
- p = g_malloc0(sizeof(struct probe));
+ p = g_malloc0(sizeof(struct sr_probe));
p->index = probenum;
p->enabled = TRUE;
if (name) {
device->probes = g_slist_append(device->probes, p);
}
-struct probe *probe_find(struct sr_device *device, int probenum)
+struct sr_probe *probe_find(struct sr_device *device, int probenum)
{
GSList *l;
- struct probe *p, *found_probe;
+ struct sr_probe *p, *found_probe;
found_probe = NULL;
for (l = device->probes; l; l = l->next) {
/* TODO: return SIGROK_ERR if probenum not found */
void device_probe_name(struct sr_device *device, int probenum, char *name)
{
- struct probe *p;
+ struct sr_probe *p;
p = probe_find(device, probenum);
if (!p)
/* TODO: return SIGROK_ERR if probenum not found */
void device_trigger_clear(struct sr_device *device)
{
- struct probe *p;
+ struct sr_probe *p;
unsigned int pnum;
if (!device->probes)
/* TODO: return SIGROK_ERR if probenum not found */
void device_trigger_set(struct sr_device *device, int probenum, char *trigger)
{
- struct probe *p;
+ struct sr_probe *p;
p = probe_find(device, probenum);
if (!p)