2012-02-15 18:07:19 -08:00
|
|
|
/* -*-mode: C; compile-command: "cd ..; ../scripts/ndkbuild.sh -j3"; -*- */
|
2010-03-28 23:38:53 +00: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 19:10:08 +00:00
|
|
|
|
|
|
|
#ifndef _ANDDICT_H_
|
|
|
|
#define _ANDDICT_H_
|
|
|
|
|
|
|
|
#include "dictnry.h"
|
2014-03-10 19:14:59 -07:00
|
|
|
#include "dictmgr.h"
|
2010-02-09 14:22:59 +00:00
|
|
|
#include "comtypes.h"
|
2010-02-11 13:27:09 +00:00
|
|
|
#include "jniutlswrapper.h"
|
2010-01-02 19:10:08 +00:00
|
|
|
|
|
|
|
void
|
2020-04-25 11:34:58 -07:00
|
|
|
dict_splitFaces( DictionaryCtxt* dict, XWEnv xwe, const XP_U8* bytes,
|
2010-01-02 19:10:08 +00:00
|
|
|
XP_U16 nBytes, XP_U16 nFaces );
|
|
|
|
|
2020-04-26 13:35:11 -07:00
|
|
|
DictionaryCtxt* makeDict( MPFORMAL JNIEnv *env,
|
|
|
|
#ifdef MAP_THREAD_TO_ENV
|
|
|
|
EnvThreadInfo* ti,
|
|
|
|
#endif
|
|
|
|
DictMgrCtxt* dictMgr, JNIUtilCtxt* jniutil,
|
|
|
|
jstring jname, jbyteArray bytes,
|
2014-03-10 19:14:59 -07:00
|
|
|
jstring path, jstring jlang, jboolean check );
|
2010-01-02 19:10:08 +00:00
|
|
|
|
2020-04-26 13:35:11 -07:00
|
|
|
void makeDicts( MPFORMAL JNIEnv *env,
|
|
|
|
#ifdef MAP_THREAD_TO_ENV
|
|
|
|
EnvThreadInfo* ti,
|
|
|
|
#endif
|
|
|
|
DictMgrCtxt* dictMgr, JNIUtilCtxt* jniutil,
|
2011-08-08 19:41:45 -07:00
|
|
|
DictionaryCtxt** dict, PlayerDicts* dicts, jobjectArray jnames,
|
|
|
|
jobjectArray jdicts, jobjectArray jpaths, jstring jlang );
|
2011-04-11 06:42:17 -07:00
|
|
|
|
|
|
|
void destroyDicts( PlayerDicts* dicts );
|
|
|
|
|
2020-04-25 11:34:58 -07:00
|
|
|
DictionaryCtxt* and_dictionary_make_empty( MPFORMAL JNIUtilCtxt* jniutil );
|
2010-01-02 19:10:08 +00:00
|
|
|
|
2010-02-11 13:27:09 +00:00
|
|
|
jobject and_dictionary_getChars( JNIEnv* env, DictionaryCtxt* dict );
|
|
|
|
|
2014-01-31 07:55:07 -08:00
|
|
|
# ifdef DEBUG
|
2014-02-10 18:23:03 -08:00
|
|
|
uint32_t andDictID(const DictionaryCtxt* dict);
|
2014-01-31 07:55:07 -08:00
|
|
|
# endif
|
|
|
|
|
2010-01-02 19:10:08 +00:00
|
|
|
#endif
|