mirror of
https://github.com/kiwix/java-libkiwix.git
synced 2025-09-09 23:30:34 -04:00
Reorder methods' definitions.
For better comparaison with the generated header.
This commit is contained in:
parent
fe1de03b23
commit
28f0acde24
@ -47,21 +47,43 @@ METHOD(void, update__Lorg_kiwix_libkiwix_JNIKiwixReader_2, jobject archive)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GETTER(jstring, getId)
|
GETTER(jstring, getId)
|
||||||
|
|
||||||
GETTER(jstring, getPath)
|
GETTER(jstring, getPath)
|
||||||
|
|
||||||
GETTER(jboolean, isPathValid)
|
GETTER(jboolean, isPathValid)
|
||||||
|
|
||||||
GETTER(jstring, getTitle)
|
GETTER(jstring, getTitle)
|
||||||
|
|
||||||
GETTER(jstring, getDescription)
|
GETTER(jstring, getDescription)
|
||||||
|
|
||||||
GETTER(jstring, getLanguage)
|
GETTER(jstring, getLanguage)
|
||||||
|
|
||||||
GETTER(jstring, getCreator)
|
GETTER(jstring, getCreator)
|
||||||
|
|
||||||
GETTER(jstring, getPublisher)
|
GETTER(jstring, getPublisher)
|
||||||
|
|
||||||
GETTER(jstring, getDate)
|
GETTER(jstring, getDate)
|
||||||
|
|
||||||
GETTER(jstring, getUrl)
|
GETTER(jstring, getUrl)
|
||||||
|
|
||||||
GETTER(jstring, getName)
|
GETTER(jstring, getName)
|
||||||
|
|
||||||
GETTER(jstring, getFlavour)
|
GETTER(jstring, getFlavour)
|
||||||
|
|
||||||
GETTER(jstring, getCategory)
|
GETTER(jstring, getCategory)
|
||||||
|
|
||||||
GETTER(jstring, getTags)
|
GETTER(jstring, getTags)
|
||||||
|
|
||||||
|
METHOD(jstring, getTagStr, jstring tagName) try {
|
||||||
|
return TO_JNI(THIS->getTagStr(TO_C(tagName)));
|
||||||
|
} catch(...) {
|
||||||
|
return c2jni<std::string>("", env);
|
||||||
|
}
|
||||||
|
|
||||||
GETTER(jlong, getArticleCount)
|
GETTER(jlong, getArticleCount)
|
||||||
|
|
||||||
GETTER(jlong, getMediaCount)
|
GETTER(jlong, getMediaCount)
|
||||||
|
|
||||||
GETTER(jlong, getSize)
|
GETTER(jlong, getSize)
|
||||||
|
|
||||||
METHOD0(jobjectArray, getIllustrations) {
|
METHOD0(jobjectArray, getIllustrations) {
|
||||||
@ -78,8 +100,3 @@ METHOD0(jobjectArray, getIllustrations) {
|
|||||||
METHOD(jobject, getIllustration, jint size) {
|
METHOD(jobject, getIllustration, jint size) {
|
||||||
return BUILD_WRAPPER("org/kiwix/libkiwix/Illustration", THIS->getIllustration(TO_C(size)));
|
return BUILD_WRAPPER("org/kiwix/libkiwix/Illustration", THIS->getIllustration(TO_C(size)));
|
||||||
}
|
}
|
||||||
METHOD(jstring, getTagStr, jstring tagName) try {
|
|
||||||
return TO_JNI(THIS->getTagStr(TO_C(tagName)));
|
|
||||||
} catch(...) {
|
|
||||||
return c2jni<std::string>("", env);
|
|
||||||
}
|
|
||||||
|
@ -70,13 +70,13 @@ METHOD(jint, getBookCount, jboolean localBooks, jboolean remoteBooks) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
GETTER(jobjectArray, getBooksIds)
|
GETTER(jobjectArray, getBooksIds)
|
||||||
GETTER(jobjectArray, getBooksLanguages)
|
|
||||||
GETTER(jobjectArray, getBooksCategories)
|
|
||||||
GETTER(jobjectArray, getBooksCreators)
|
|
||||||
GETTER(jobjectArray, getBooksPublishers)
|
|
||||||
|
|
||||||
METHOD(jobjectArray, filter, jobject filterObj) {
|
METHOD(jobjectArray, filter, jobject filterObj) {
|
||||||
auto filter = getPtr<kiwix::Filter>(env, filterObj);
|
auto filter = getPtr<kiwix::Filter>(env, filterObj);
|
||||||
return c2jni(THIS->filter(*filter), env);
|
return c2jni(THIS->filter(*filter), env);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GETTER(jobjectArray, getBooksLanguages)
|
||||||
|
GETTER(jobjectArray, getBooksCategories)
|
||||||
|
GETTER(jobjectArray, getBooksCreators)
|
||||||
|
GETTER(jobjectArray, getBooksPublishers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user