On Sunday 02 July 2006 05:28, Richard Purdie wrote: > One thing the input system does well is pass simple switch events to > userspace though its event devices. Not using the input system for > switch like events like these is going to result in code duplication. > I think that hotplug/uevent like mechanism would be better suited here. You want to monitor changes in system state and you do not really want to monitor myriad of devices but just latch onto one data feed and get all the data from it (unlike input devices where you might want to separate data coming from different devices). The following "event" might be a good starting point: struct system_change_event { struct timeval time; /* look for 32/64 bit issues */ __u16 type; __u16 code; __s32 value; char object_path[224]; }; Maybe we should start looking into connector or a pure netlink implementation. -- Dmitry |
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel