Example of using C API from D?

Russel Winder russel at winder.org.uk
Sun Sep 2 12:52:11 UTC 2018


I am rewriting a C++ program in D, but need to access a C library that
has no D binding: this is a GtkD based program which has a Pango
binding, but Pango doesn't offer the information I need, that is hidden
in the underlying Fontconfig C API.

I could create a complete D binding for Fontconfig using the GIR files
but that seems a bit over the top. 

Can anyone point me at an example of a D program using a C API that has
structs, enums and functions so I can see if I just hack enough for my
use or go on to the full binding activity.

-- 
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20180902/126a793d/attachment.sig>


More information about the Digitalmars-d-learn mailing list