// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package m2n;

public class TestJNI {
    // load library
    static {
        System.loadLibrary("TestJNI");
    }
    // define functions
    native public static int add(int a, int b);
    native public static String dup(String s);
    native public static int sum(int[] a);
    native public static void getOut(int[] iv, String[] sv);
    native public static Data1 getRet();
    native public static void chg(Data2 s);
}
