com.sun.jna.Callback Java Examples

The following examples show how to use com.sun.jna.Callback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JnaUtils.java    From mr4c with Apache License 2.0 4 votes vote down vote up
public static void protectCallback(Object scope, Callback cb) {
	s_cbProt.protect(scope,cb);
}
 
Example #2
Source File: OsvrClientKitLibrary.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/** Original signature : <code>OSVR_ReturnCode osvrRegisterButtonCallback(OSVR_ClientInterface, OSVR_ButtonCallback, void*)</code> */
public static native byte osvrRegisterButtonCallback(OsvrClientKitLibrary.OSVR_ClientInterface iface, Callback cb, Pointer userdata);
 
Example #3
Source File: OsvrClientKitLibrary.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/** Original signature : <code>OSVR_ReturnCode osvrRegisterAnalogCallback(OSVR_ClientInterface, OSVR_AnalogCallback, void*)</code> */
public static native byte osvrRegisterAnalogCallback(OsvrClientKitLibrary.OSVR_ClientInterface iface, Callback cb, Pointer userdata);
 
Example #4
Source File: FoundationLibrary.java    From jdk8u_jdk with GNU General Public License v2.0 votes vote down vote up
ID class_replaceMethod(ID cls, Pointer selName, Callback impl, String types); 
Example #5
Source File: FoundationLibrary.java    From jdk8u_jdk with GNU General Public License v2.0 votes vote down vote up
boolean class_addMethod(ID cls, Pointer selName, Callback imp, String types); 
Example #6
Source File: FoundationLibrary.java    From consulo with Apache License 2.0 votes vote down vote up
ID class_replaceMethod(ID cls, Pointer selName, Callback impl, String types); 
Example #7
Source File: FoundationLibrary.java    From consulo with Apache License 2.0 votes vote down vote up
boolean class_addMethod(ID cls, Pointer selName, Callback imp, String types);