[Authentication] Fwd: Re: Small API issues

Michael Leupold lemma at confuego.org
Thu Jul 16 01:45:44 PDT 2009


On Thursday 16 July 2009 01:42:17 Stef Walter wrote:
> Michael Leupold wrote:
> > On Wednesday 15 July 2009 19:06:51 Stef Walter wrote:
> >> Michael Leupold wrote:
> >>> 3. Object paths:
> >>> - Object paths could be shorter. I'd advocate /<apiname> (eg.
> >>> /Secrets/...) effectively stripping the /org/freedesktop prefix.
> >>
> >> Are you sure that's the right way to do things? Object paths are global
> >> to the dbus bus, and should have a unique prefix.
> >
> > As I understand it object paths are local to the service name. From what
> > I see in other protocols some seem to use /org/freedesktop while others
> > use /Servicename.
>
> Interesting. Which services do that?

D-Bus itself: /
PowerManagement: /org/freedesktop/PowerManagement
Hal: /org/freedesktop/Hal
...

So it seems most use /org/freedesktop and (while I don't see the rationale) we 
should probably follow along.

> >>> 4. Errors:
> >>> - add org.freedesktop.Secrets.Error.NoSession for methods calls which
> >>> require a session but have none
> >>
> >> Very likely a good idea, but let's add errors as we need them. Which
> >> methods would return this? If you list them I'll it to the
> >> documentation.
> >
> > I'd put that on Service.SearchItems and Service.RetrieveSecrets as the
> > service interface will be available even if no session exists.
>
> True for Service.RetrieveSecrets(). But an application can search for
> items even when no session exists.

True.

Regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/authentication/attachments/20090716/41ac27bb/attachment.pgp 


More information about the Authentication mailing list