Skip to content

Commit

Permalink
The cinterop “noStringConversion” option lets you use the unmodified …
Browse files Browse the repository at this point in the history
…Firebird API.
  • Loading branch information
hgourvest committed Jun 1, 2024
1 parent 60d9e3f commit 32c7849
Show file tree
Hide file tree
Showing 6 changed files with 1,212 additions and 185 deletions.
8 changes: 7 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ org.gradle.caching=true
kotlin.code.style=official

#Android
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true

#Signing
signing.keyId=9D2AFC20
signing.password=agnusdei
signing.secretKeyRingFile=/home/henri/.gnupg/secring.gpg

2 changes: 1 addition & 1 deletion library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ kotlin {
val main by getting {
cinterops {
create("fbclient") {
header(file("../native/include/fbclient.h"))
header(file("../native/include/ibase.h"))
}
}
}
Expand Down
1 change: 1 addition & 0 deletions library/src/nativeInterop/cinterop/fbclient.def
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ linkerOpts.mingw = -L"C:/Program Files/Firebird/Firebird_5_0/lib/" -lfbclient_ms
linkerOpts.linux = -L/opt/firebird/lib/ -lfbclient
linkerOpts.osx = -L/Library/Frameworks/Firebird.framework/Resources/lib/ -lfbclient

noStringConversion = isc_attach_database isc_create_database isc_dsql_execute_immediate isc_dsql_prepare isc_get_segment isc_put_segment isc_blob_info isc_dsql_sql_info
2 changes: 1 addition & 1 deletion native/firebird-lib-jni.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <jni.h>
#include <fbclient.h>
#include <ibase.h>
#include <cstring>
#include <algorithm>
#include <limits>
Expand Down
182 changes: 0 additions & 182 deletions native/include/fbclient.h

This file was deleted.

Loading

0 comments on commit 32c7849

Please sign in to comment.