[gphoto-devel] [PATCH 0/2] remove deprecated keys from HAL

Danny Kukawka danny.kukawka at web.de
Tue Mar 4 10:29:16 PST 2008


On Dienstag, 4. März 2008, Dan Nicholson wrote:
> On Tue, Mar 4, 2008 at 10:06 AM, Danny Kukawka <danny.kukawka at web.de> wrote:
[...]
> > There is IMO a clear mechanism. If keys get replaced and with this
> > deprecated, they get removed from the SPEC and added to the 'Deprecated
> > Properties' section of the HAL spec with the info which property/key
> > replaced them and at which date they get removed finally. And there is
> > also the release news which normaly contains info about the remove.
>
> But how is that associated to a version? What if I want to run gphoto
> trunk on hal-0.5.8.x? The libhal API says that's OK, but then it has
> no idea about an "originating_device".

This libhal API has, as the DBus methodes/interface of HAL nothing to do with 
this change. You are free to add fallback code to NM. Simply check first if 
the property you want to read really exist and if not try the old one. This 
is what I do for example in KPowersave.

Danny


More information about the hal mailing list