[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: jni.h VM dependencies
From: |
Tom Tromey |
Subject: |
Re: jni.h VM dependencies |
Date: |
29 Oct 2001 11:30:04 -0700 |
>>>>> "Brian" == Brian Jones <address@hidden> writes:
Brian> I was wondering if any of you have great ideas for how to
Brian> handle these opaque structures defined in a typical jni.h.
Brian> typedef struct _jfieldID *jfieldID;
Brian> typedef struct _jmethodID *jmethodID;
Just define them as `void *'.
Or define them the way you have them now.
Brian> I am currently thinking something like this in jni.h
Brian> #include "jni_vm.h"
Brian> typedef JFIELD_ID jfieldID;
Brian> typedef JMETHOD_ID jmethodID;
Brian> [ ... ]
How will `JVM' get defined?
I think you can't require user code to set it.
Tom