Hi,

> On 17.06.2015, at 16:45, Dirk Hohndel <[email protected]> wrote:
> 
> No one suggested that the application HAS to provide that functionality.
> What we are suggesting is to make this an OPTION. If the application wants
> to do this...


I did not follow this discussion in all details. But maybe I can expand a 
little bit what Dirk is saying here. (And yes, due to my ignorance, what I am 
suggesting could be total bs.)

I think what Dirk has in mind, you rename some functions in your API and give 
them additional callback arguments (like to a function that behaves like open 
and one that behaves like close).

Then the application can provide those functions that might be doing something 
else (like first pairing etc). In libdivecomputer, you replace the direct calls 
to open and close by the callbacks and finally you add wrapper functions with 
the old API names that behave like the old API by calling the renamed functions 
with callbacks to the traditional versions of open and close. (And “you” in 
that case does not mean it has to be Jef who is actually coding this).

In this way, you stay backwards compatible but give applications the chance to 
do a little setting up for the actual communication.

I hope this makes sense. (And I admit I do not see how this relates to your 
point about open sourceless of ldc).

Best
Robert

--
.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oO
Robert C. Helling     Elite Master Course Theoretical and Mathematical Physics
                      Scientific Coordinator
                      Ludwig Maximilians Universitaet Muenchen, Dept. Physik
                      Phone: +49 89 2180-4523  Theresienstr. 39, rm. B339
                      http://www.atdotde.de

Enhance your privacy, use cryptography! My PGP keys have fingerprints
A9D1 A01D 13A5 31FA 6515  BB44 0820 367C 36BC 0C1D    and
DCED 37B6 251C 7861 270D  5613 95C7 9D32 9A8D 9B8F





Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to