Mercurial > vba-clojure
changeset 43:480951f6521d
add initial jni interface
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 06 Mar 2012 21:43:28 -0600 |
parents | 6f145876d887 |
children | 9d3769896d66 |
files | src/com/aurellem/gb/Gb.java |
diffstat | 1 files changed, 23 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/com/aurellem/gb/Gb.java Tue Mar 06 21:43:28 2012 -0600 1.3 @@ -0,0 +1,23 @@ 1.4 +package com.aurellem.gb; 1.5 + 1.6 +import java.nio.ByteBuffer; 1.7 + 1.8 + 1.9 +public class Gb { 1.10 + 1.11 + 1.12 + public Gb(){} 1.13 + 1.14 + 1.15 + /** 1.16 + * Hello World! This is just to test the native interface. 1.17 + */ 1.18 + public native void sayHello(); 1.19 + 1.20 + /** 1.21 + * Run the emulator on a given rom 1.22 + * @param rom - the name of the rom. 1.23 + */ 1.24 + public native void startEmulator(String rom); 1.25 + 1.26 +}