From 61f7f0467152fed4ee2f4916891a79be3c0f2cfe Mon Sep 17 00:00:00 2001 From: Alain Picard Date: Tue, 12 Dec 2023 09:17:56 -0500 Subject: [PATCH] more stuff --- mdbxjni/src/main/native-package/src/buffer.c | 20 +++++++++++++++---- mdbxjni/src/main/native-package/src/mdbxjni.h | 2 ++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/mdbxjni/src/main/native-package/src/buffer.c b/mdbxjni/src/main/native-package/src/buffer.c index a227159..4d6b7b4 100644 --- a/mdbxjni/src/main/native-package/src/buffer.c +++ b/mdbxjni/src/main/native-package/src/buffer.c @@ -50,10 +50,22 @@ int ptr_2_cursor(MDBX_cursor * ptr, MDBX_cursor * cursor, size_t bytes) { return 0; } -/* int get_mdbx_build_info(void *arg, size_t bytes) { - mdbx_build.target; - memcpy(&mdbx_build, arg, bytes); +/* +printf("mdbx_copy version %d.%d.%d.%d\n" + " - source: %s %s, commit %s, tree %s\n" + " - build: %s for %s by %s\n" + " - flags: %s\n" + " - options: %s\n", + mdbx_version.major, mdbx_version.minor, mdbx_version.release, + mdbx_version.revision, mdbx_version.git.describe, + mdbx_version.git.datetime, mdbx_version.git.commit, + mdbx_version.git.tree, mdbx_build.datetime, + mdbx_build.target, mdbx_build.compiler, mdbx_build.flags, + mdbx_build.options); +// const char * datetime = mdbx_build.datetime; + const struct __declspec(dllimport) MDBX_build_info my_build = mdbx_build; +// memcpy(mdbx_build.datetime, arg, bytes); +*/ return MDBX_SUCCESS; } -*/ \ No newline at end of file diff --git a/mdbxjni/src/main/native-package/src/mdbxjni.h b/mdbxjni/src/main/native-package/src/mdbxjni.h index 1793b68..de977e4 100644 --- a/mdbxjni/src/main/native-package/src/mdbxjni.h +++ b/mdbxjni/src/main/native-package/src/mdbxjni.h @@ -69,6 +69,8 @@ char* map_printf(char *buf, int size, const char * format, void *args); int ptr_2_cursor(MDBX_cursor * ptr, MDBX_cursor * cursor, size_t bytes); +int get_mdbx_build_info(void *arg, size_t bytes); + #ifdef __cplusplus } /* extern "C" */ #endif