linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Replaying event for a libudev monitor
@ 2009-01-02  8:16 Marcel Holtmann
  2009-01-02 13:00 ` Kay Sievers
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Marcel Holtmann @ 2009-01-02  8:16 UTC (permalink / raw)
  To: linux-hotplug

Hi Kay,

so the enumeration API of libudev is pretty since, but when using a
monitor to get add/change/remove events anyway, it is kinda double work.

So I have udev rules to select certain events to send to a specific
socket and that works great and truly simple with libudev. However when
the client starts up, it has to discover the initial state of these
events. I can use the enumeration part of libudev, but then I am putting
details into a rules file and others into the client.

So what I like to have is a way to replay the events for that monitor
socket. Something similar to this:

	ctx = udev_new();
	mon = udev_monitor_new_from_socket(ctx, "@socket");
	udev_monitor_enable_receiving(mon);

	/* setup watch etc. */

	udev_monitor_replay_events(mon);

What do you think? Can we add something like this?

Regards

Marcel



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-01-02 18:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-02  8:16 Replaying event for a libudev monitor Marcel Holtmann
2009-01-02 13:00 ` Kay Sievers
2009-01-02 14:04 ` Marcel Holtmann
2009-01-02 16:05 ` Kay Sievers
2009-01-02 17:45 ` Marcel Holtmann
2009-01-02 17:56 ` David Zeuthen
2009-01-02 17:57 ` Kay Sievers
2009-01-02 18:02 ` Marcel Holtmann
2009-01-02 18:12 ` Kay Sievers
2009-01-02 18:33 ` Marcel Holtmann
2009-01-02 18:36 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).