Skip to content

Support a custom SymbolProvider in NativeLibrary#1483

Closed
soywiz wants to merge 0 commit intojava-native-access:masterfrom
korlibs:master
Closed

Support a custom SymbolProvider in NativeLibrary#1483
soywiz wants to merge 0 commit intojava-native-access:masterfrom
korlibs:master

Conversation

@soywiz
Copy link
Copy Markdown
Contributor

@soywiz soywiz commented Dec 2, 2022

This allows to do function hooking/replacement while still using direct mapping.

In addition to that, to properly using the OpenGL library on Windows, and access OpenGL >= 2.0, we need to use a custom getSymbol function: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-wglgetprocaddress

Relevant information:

I have run already the tests here:
https://github.com/korlibs/jna/actions/runs/3601244855

In the test I'm switching cos and sin functions to show it works.

@soywiz
Copy link
Copy Markdown
Contributor Author

soywiz commented Dec 9, 2022

Started a thread here: https://groups.google.com/g/jna-users/c/RDt8sHAnTm0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant