-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #2 : Support passing the JNIEnv pointer to native methods.
- Loading branch information
Showing
6 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -324,5 +324,6 @@ static class Range { | |
|
||
} | ||
|
||
|
||
public static final native void passingtheenv (String msg, JNIEnv env); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
hawtjni-runtime/src/main/java/org/fusesource/hawtjni/runtime/JNIEnv.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Copyright (C) 2010, FuseSource Corp. All rights reserved. | ||
*/ | ||
package org.fusesource.hawtjni.runtime; | ||
|
||
/** | ||
* <p> | ||
* This is a marker class. Methods that take this as an argument | ||
* will receive that actual native 'JNIEnv *' value. Since this | ||
* class cannot be instantiated, Java callers must pass null | ||
* for the value. | ||
* </p> | ||
* | ||
* @author <a href="http://hiramchirino.com">Hiram Chirino</a> | ||
*/ | ||
public class JNIEnv { | ||
private JNIEnv() {} | ||
} |