[1654] in java-interest

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

Native methods and strructures

daemon@ATHENA.MIT.EDU (Christian Koechling c/o ROBERT BO)
Wed Sep 13 11:07:47 1995

Date: Wed, 13 Sep 95 14:20:04 WET DST
From: Christian Koechling  c/o ROBERT BOSCH GmbH   FV/SLH <"kl@hi02c342"@hic334.decnet.bosch.de>
To: "java-interest@java.sun.com"@si4640.si.bosch.de
Apparently-To: java-interest@java.sun.com

Hi Fellows

I want to write a native method which handles a pointer of a
class representing a data structure to a C-Program.
 
for example:
 
Data Structure(Class) in Java
package demo;
    public class data{
      int.x
     I int.y
     }
     
My native method should be something like:
 
 package demo;
 import java.util.Linker
 class interface{
     static{
       Linker.loadLibrary("file")
     }
 
     public void native send_data_to_c(data d);
 }

Thanks for any help on this subject

Christian
-
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