On Mon, Oct 5, 2009 at 11:13 AM, Adam Jackson <[email protected]> wrote: > On Tue, 2009-09-29 at 23:54 +0200, Julien Cristau wrote: > >> - what's the recommended way to avoid races between the 'enumerate' and >> 'monitor' parts? > > I suspect the answer is "turn on monitor, then enumerate, then read plug > events from the monitor", and no-op adding a device you've already > added.
A while back, the udev maintainer posted a really simple monitor for v4l events with libudev. Maybe it can answer some questions about using the API. http://marc.info/?l=linux-hotplug&m=124196393502336&w=2 -- Dan _______________________________________________ xorg-devel mailing list [email protected] http://lists.x.org/mailman/listinfo/xorg-devel
