[2910] in java-interest

home help back first fref pref prev next nref lref last post

How to access contents of a C struct from java?

daemon@ATHENA.MIT.EDU (Eeva-Liisa Hirvola)
Fri Oct 20 05:01:02 1995

Date: Fri, 20 Oct 1995 09:20:00 +0200 (EET)
From: Eeva-Liisa Hirvola <ehirvola@vipunen.hut.fi>
To: java-interest@java.sun.com



(How) is it possible to access=20
the contents of a C-struct in java?=20

I call a native C-function from java.=20
In C-function there is a=20
=09struct {=20
=09=09int a;=20
=09=09char b[5];=20
=09=09struct{=20
=09=09=09float ca;=20
=09=09=09float cb;
=09=09      } c
=09       }

How should I define a java class corresponding to the C-struct?
How could I provide a struct variable from C to java?=20

=09
=09=09 Eeva Hirvola


--
Eeva Hirvola=09=09=09=09e-mail eeva.hirvola@hut.fi
Nimismiehenm=E4ki 3B3=09=09=09
02770 ESPOO, Finland=09
  =20
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post