1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

new engine for mobi files

This commit is contained in:
Nikolay Pultsin 2014-09-08 07:41:08 +01:00
parent a25c23f5f9
commit aa8ab30807
64 changed files with 2652 additions and 2806 deletions

View file

@ -353,6 +353,17 @@ JNIEXPORT jint JNICALL Java_org_geometerplus_fbreader_formats_NativeFormatPlugin
return 0;
}
extern "C"
JNIEXPORT jstring JNICALL Java_org_geometerplus_fbreader_formats_NativeFormatPlugin_readAnnotationInternal(JNIEnv* env, jobject thiz, jobject file) {
shared_ptr<FormatPlugin> plugin = findCppPlugin(thiz);
if (plugin.isNull()) {
return 0;
}
const std::string path = AndroidUtil::Method_ZLFile_getPath->callForCppString(file);
return AndroidUtil::createJavaString(env, plugin->readAnnotation(ZLFile(path)));
}
extern "C"
JNIEXPORT void JNICALL Java_org_geometerplus_fbreader_formats_NativeFormatPlugin_readCoverInternal(JNIEnv* env, jobject thiz, jobject file, jobjectArray box) {
shared_ptr<FormatPlugin> plugin = findCppPlugin(thiz);