Dave Mielke <[email protected]> writes:

> I disagree. I think a far better approach is for the initialize method to 
> return a handle of the succeeding paradigm to the caller, and for the caller 
> to 
> then pass that same handle to the release function. This would actually make 
> the auth code become fully reentrant.

The only thing you lose, and I am not sure it's necessarily a loss, is
fallback methods.
Scenario: brltty is configured to use polkit+keyfile for
authentication.  In this scenario, polkit support was built, so we won't
hit the bug I reported yesterday.  The polkit method descriptor
initializes just fine.  But for whatever reason, polkit authentication
doesn't work on the user's system.  We could still fall back to keyfile.

-- Chris
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.com/mailman/listinfo/brltty

Reply via email to