Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TTInstance from JNI API #2157

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Remove TTInstance from JNI API #2157

merged 2 commits into from
Feb 15, 2024

Conversation

bear101
Copy link
Contributor

@bear101 bear101 commented Feb 14, 2024

No description provided.

TeamTalkBase.initTeamTalkPoll() returns a jlong that is really a
casted TTInstance. With this change the mapping from "jobject thiz" to
TTInstance is done using a std::map where the key is
Object.hashCode() and the value is TTInstance*

This simplifies dk.bearware.TeamTalkBase class since "double" native
method are no longer needed.
@bear101 bear101 self-assigned this Feb 14, 2024
@bear101 bear101 force-pushed the jni-remove-ttinst branch 2 times, most recently from a01137f to 375a13c Compare February 15, 2024 17:22
@bear101 bear101 merged commit 9e8ee05 into master Feb 15, 2024
11 checks passed
@bear101 bear101 deleted the jni-remove-ttinst branch February 15, 2024 18:28
@bear101 bear101 added this to the TeamTalk v5.16 milestone Feb 17, 2024
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