[patch] addon-hid-ups.c : battery.present is mandatory for HAL spec

Richard Hughes hughsient at gmail.com
Tue May 10 13:22:10 PDT 2005


On Tue, 2005-05-10 at 15:58 -0400, David Zeuthen wrote:
> I suppose we could return an int instead :-) - I'm just dishing out code
> on the mailing list, go easy on me :-)

Sorry :-)

> > Also, whats the
> > *id for?
> 
> Suppose my implementation wants to store history then I need something
> unique to store it under (since this function will possibly get called
> for several batteries)..

Good plan.

> > 
> > > I don't really like this; it makes it more difficult to drop in another
> > > implementation without having to know what a HalDevice* is... 
> > 
> > Working on a patch now.

Attached, feel free to mangle/rename/abuse.

Thanks, Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-add-time-02.patch
Type: text/x-patch
Size: 4594 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050510/0a5db91d/hal-add-time-02.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list