using Callback Based Data Buffers with Java

Werner Koch wk at gnupg.org
Tue Jul 16 00:03:38 CEST 2013


On Mon, 15 Jul 2013 22:44, hans at guardianproject.info said:

> For the GnuPGData.c implementation of the Java class that corresponds to
> gpgme_data_t, it needs to include both gpgme.h and data.h since it needs to

No way.  data.h is internal to gpgme and not part of the API.  It may
change with any release.  Internal data structures may never be used by
other applications or even language bindings.  The reason why
gpgme_data_t is an opaque pointer is just to not expose it in the API.

A language binding need to take this as an opaque pointer and is not
allowed to assume anything about it.  The only exception is NULL, which
means that the data object is not allocated.


Salam-Shalom,

   Werner

--
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list