Re: JNI two java classes makes same native call..will it affect the signature
- From: "Chris Uppal" <chris.uppal@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Sep 2005 08:14:08 +0100
Neena wrote:
> JNIEXPORT jintArray JNICALL Java_Client_getName
> (JNIEnv *, jobject, jlong);
>
> but i have server.h also.ie,
>
> JNIEXPORT jintArray JNICALL Java_Server_getName
> (JNIEnv *, jobject, jlong);
>
> what shall i do? write the native function twice???
Write two short native functions that both invoke the same real code.
Alternatively, move method into a separate class where can be invoked from both
Server and Client without duplication.
-- chris
.
- References:
- Prev by Date: JNI two java classes makes same native call..will it affect the signature
- Next by Date: Re: JNI two java classes makes same native call..will it affect the signature
- Previous by thread: JNI two java classes makes same native call..will it affect the signature
- Index(es):
Relevant Pages
|