Skip to content

Commit

Permalink
more stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
castortech committed Dec 12, 2023
1 parent 7472726 commit 61f7f04
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 16 additions & 4 deletions mdbxjni/src/main/native-package/src/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
*/
2 changes: 2 additions & 0 deletions mdbxjni/src/main/native-package/src/mdbxjni.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61f7f04

Please sign in to comment.