callback.java
来自「jnative java 调用动态库需要的包和dll」· Java 代码 · 共 46 行
JAVA
46 行
package org.xvolks.jnative.util;
import org.xvolks.jnative.exceptions.NativeException;
/**
* $Id: Callback.java,v 1.6 2006/12/07 21:44:31 mdenty Exp $
* <p>
* Callback.java
* </p>
*
* This software is released under the LGPL.
* @author Created by Marc DENTY - (c) 2006 JNative project
*/
public interface Callback {
/**
* Method callback
*
* @param values an long[]
*
* @return an int
*
* @version 3/27/2006
*/
public int callback(long[] values);
/**
* This method should call JNative.createCallback() AND MUST allow multiple calls
* <p>
* Something like :
* <pre>
* abstract class MyCallback implements Callback {
* private int myAddress = -1;
* public int getCallbackAddress() throws NativeException {
* if(myAddress == -1) {
* myAddress = JNative.createCallback(numParam, this);
* }
* return myAddress;
* }
* }
* </pre>
* </p>
* @return the address of the callback function
*/
public int getCallbackAddress() throws NativeException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?