This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Integration with C
- From: Geert Bevin <gbevin at uwyn dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 17 Apr 2003 18:42:22 +0200
- Subject: Integration with C
- Organization: UWYN
Hello,
I need to write a mechanism for providing callback hooks to C code. I'm
using gcj to write a backend library which would eventually by usable by
a C gui frontend written in for example Gtk+ or Gnome. The backend
however needs to provide updates and events to the gui interface for
user-friendlyness.
What's the best approach here, using CNI or JNI? I never did this, so
before setting off to learn one, it would be best to pick the most
appropriate one right way ;-)
Thanks for the insights,
Geert Bevin
--
Geert Bevin Uwyn
"Use what you need" Lambermontlaan 148
http://www.uwyn.com 1030 Brussels
gbevin[remove] at uwyn dot com Tel & Fax +32 2 245 41 06
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net