ASSERT_OK(device_add_property(d, "SEQNUM", "10"));
log_device_debug(d, "Sending device subsystem:%s syspath:%s", s, p);
- ASSERT_OK(device_monitor_send_device(monitor_server, address, d));
+ ASSERT_OK(device_monitor_send(monitor_server, address, d));
/* The sysattr and parent filters are not implemented in BPF yet. So, sending multiple
- * devices may fills up buffer and device_monitor_send_device() may return EAGAIN. Let's
- * send only a few devices here, which should be filtered out by the receiver. */
+ * devices may fills up buffer and device_monitor_send() may return EAGAIN. Let's send only a
+ * few devices here, which should be filtered out by the receiver. */
if (n != SIZE_MAX && ++i >= n)
break;
}
prepare_monitor(&monitor_server, &monitor_client, &sa);
ASSERT_OK(sd_device_monitor_start(monitor_client, monitor_handler, (void *) syspath));
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, loopback));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, loopback));
ASSERT_OK(sd_event_run(sd_device_monitor_get_event(monitor_client), 0));
}
ASSERT_OK(sd_device_monitor_filter_update(monitor_client));
ASSERT_OK(sd_device_monitor_start(monitor_client, monitor_handler, (void *) syspath));
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_EQ(sd_event_loop(sd_device_monitor_get_event(monitor_client)), 100);
}
send_by_enumerator(monitor_server, &sa, e, SIZE_MAX, NULL);
log_device_info(device, "Sending device subsystem:%s syspath:%s", subsystem, syspath);
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_EQ(sd_event_loop(sd_device_monitor_get_event(monitor_client)), 100);
}
send_by_enumerator(monitor_server, &sa, e, SIZE_MAX, NULL);
log_device_info(device, "Sending device syspath:%s", syspath);
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_EQ(sd_event_loop(sd_device_monitor_get_event(monitor_client)), 100);
}
send_by_enumerator(monitor_server, &sa, e, 5, NULL);
log_device_info(device, "Sending device syspath:%s", syspath);
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_EQ(sd_event_loop(sd_device_monitor_get_event(monitor_client)), 100);
}
send_by_enumerator(monitor_server, &sa, e, 5, parent_syspath);
log_device_info(device, "Sending device syspath:%s", syspath);
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_EQ(sd_event_loop(sd_device_monitor_get_event(monitor_client)), 100);
}
ASSERT_OK(sd_device_monitor_filter_add_match_subsystem_devtype(monitor_client, "hoge", NULL));
ASSERT_OK(sd_device_monitor_start(monitor_client, monitor_handler, (void *) syspath));
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_OK(sd_event_run(sd_device_monitor_get_event(monitor_client), 0));
ASSERT_OK(sd_device_monitor_filter_remove(monitor_client));
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_EQ(sd_event_loop(sd_device_monitor_get_event(monitor_client)), 100);
}
prepare_monitor(&monitor_server, &monitor_client, &sa);
- ASSERT_OK(device_monitor_send_device(monitor_server, &sa, device));
+ ASSERT_OK(device_monitor_send(monitor_server, &sa, device));
ASSERT_OK(fd = sd_device_monitor_get_fd(monitor_client));
for (;;) {