add dict_getTileValue

This commit is contained in:
Andy2 2011-02-24 22:23:57 -08:00
parent 40dcda2262
commit 5afb7aadff
2 changed files with 8 additions and 0 deletions

View file

@ -302,6 +302,13 @@ Java_org_eehouse_android_xw4_jni_XwJNI_dict_1getChars
return result;
}
JNIEXPORT jint JNICALL
Java_org_eehouse_android_xw4_jni_XwJNI_dict_1getTileValue
( JNIEnv* env, jclass C, jint dictPtr, jint tile )
{
return dict_getTileValue( (DictionaryCtxt*)dictPtr, tile );
}
typedef struct _JNIState {
XWGame game;
JNIEnv* env;

View file

@ -223,4 +223,5 @@ public class XwJNI {
public static native String[] dict_getChars( int dictPtr );
public static native void dict_getInfo( byte[] dict, JNIUtils jniu,
DictInfo info );
public static native int dict_getTileValue( int dictPtr, int tile );
}