2012-02-16 03:07:19 +01:00
|
|
|
/* -*-mode: C; compile-command: "cd ..; ../scripts/ndkbuild.sh -j3"; -*- */
|
2010-03-29 01:38:53 +02:00
|
|
|
/*
|
|
|
|
* Copyright © 2009-2010 by Eric House (xwords@eehouse.org). All
|
|
|
|
* rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2010-01-02 20:10:08 +01:00
|
|
|
|
|
|
|
#ifndef _ANDDICT_H_
|
|
|
|
#define _ANDDICT_H_
|
|
|
|
|
|
|
|
#include "dictnry.h"
|
2014-03-11 03:14:59 +01:00
|
|
|
#include "dictmgr.h"
|
2010-02-09 15:22:59 +01:00
|
|
|
#include "comtypes.h"
|
2010-02-11 14:27:09 +01:00
|
|
|
#include "jniutlswrapper.h"
|
2010-01-02 20:10:08 +01:00
|
|
|
|
|
|
|
void
|
2020-04-25 20:34:58 +02:00
|
|
|
dict_splitFaces( DictionaryCtxt* dict, XWEnv xwe, const XP_U8* bytes,
|
2010-01-02 20:10:08 +01:00
|
|
|
XP_U16 nBytes, XP_U16 nFaces );
|
|
|
|
|
2020-09-13 23:34:47 +02:00
|
|
|
DictionaryCtxt* makeDict( MPFORMAL JNIEnv* env,
|
2020-04-26 22:35:11 +02:00
|
|
|
#ifdef MAP_THREAD_TO_ENV
|
|
|
|
EnvThreadInfo* ti,
|
|
|
|
#endif
|
|
|
|
DictMgrCtxt* dictMgr, JNIUtilCtxt* jniutil,
|
|
|
|
jstring jname, jbyteArray bytes,
|
2014-03-11 03:14:59 +01:00
|
|
|
jstring path, jstring jlang, jboolean check );
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2020-09-13 23:34:47 +02:00
|
|
|
void makeDicts( MPFORMAL JNIEnv* env,
|
2020-04-26 22:35:11 +02:00
|
|
|
#ifdef MAP_THREAD_TO_ENV
|
|
|
|
EnvThreadInfo* ti,
|
|
|
|
#endif
|
|
|
|
DictMgrCtxt* dictMgr, JNIUtilCtxt* jniutil,
|
2011-08-09 04:41:45 +02:00
|
|
|
DictionaryCtxt** dict, PlayerDicts* dicts, jobjectArray jnames,
|
|
|
|
jobjectArray jdicts, jobjectArray jpaths, jstring jlang );
|
2011-04-11 15:42:17 +02:00
|
|
|
|
|
|
|
void destroyDicts( PlayerDicts* dicts );
|
|
|
|
|
2020-04-25 20:34:58 +02:00
|
|
|
DictionaryCtxt* and_dictionary_make_empty( MPFORMAL JNIUtilCtxt* jniutil );
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2010-02-11 14:27:09 +01:00
|
|
|
jobject and_dictionary_getChars( JNIEnv* env, DictionaryCtxt* dict );
|
|
|
|
|
2014-01-31 16:55:07 +01:00
|
|
|
# ifdef DEBUG
|
2014-02-11 03:23:03 +01:00
|
|
|
uint32_t andDictID(const DictionaryCtxt* dict);
|
2014-01-31 16:55:07 +01:00
|
|
|
# endif
|
|
|
|
|
2010-01-02 20:10:08 +01:00
|
|
|
#endif
|