D and C APIs
Russel Winder via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jan 12 05:28:53 PST 2016
On Tue, 2016-01-12 at 12:56 +0000, bachmeier via Digitalmars-d wrote:
>
[…]
> Sorry I can't offer any help, but I'm genuinely curious by what
> you mean in this part of your quote. If the API is changing, how
> does using C++, or for that matter C, help you? Sure, you can
> include the header directly in your program, but don't you still
> have to change your program? I must be missing something.
There are two APIs, the kernel/device driver and the library over it.
libdvbv5 is trying to provide an unchanging adaptor and in many ways
succeeds admirably (as long as you are happy with all the dreadful low-
level things you have to do to do input/output and map/dictionaries).
The kernel/device driver API changes as it needs to without worrying
about backward compatibility, leaving consistency and compatibility to
libdvbv5. However libdvbv5 exposes some symbols and structures (that
don't actually change that much) directly in the libdvbv5 API. Thus you
actually have to wrap both APIs to do anything useful.
--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder at ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: russel at winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160112/f0b8b2ac/attachment.sig>
More information about the Digitalmars-d
mailing list