[PATCH] fix mapping of chassitype to system.formfactor

David Zeuthen david at fubar.dk
Fri May 19 08:23:53 PDT 2006


On Wed, 2006-05-10 at 20:32 +0200, Danny Kukawka wrote:
> On Wednesday 10 May 2006 20:04, David Zeuthen wrote:
> [...]
> > No, I don't think you need that. Btw, property_atomic_update_*() only
> > ensures that updating multiple properties are sent out as a single dbus
> > PropertyChanged changed. It doesn't really "lock" anything, it just
> > queues up changes for the dbus interface. Which is kinda useless for
> > coldplug as we haven't even claimed the org.freedesktop.Hal service
> > before all coldplug is done (to prevent sending out lots of signals when
> > adding devices in coldplug).
> 
> Okay, good to know, I miss-interpreted the function. 
> 
> [...]
> > I think the problem you were seeing was related to the missing "== 0" in
> > the strcmp.
> 
> I attached a new version of the patch. This should fix it, without the 
> property_atomic_update_*() calls and should also complete skip the hole 
> mapping if the value of system.formfactor was already set in a other place 
> (this is only a little better performance, but it's better ;-) ).
> 
> Btw. The patch look bigger than it really is ...

Sorry for the delay. Looks good to commit. Thanks!

    David




More information about the hal mailing list