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

Cannot pass a struct to 'c' function by value #321

Open
mcsherrylabs opened this issue Feb 16, 2023 · 0 comments
Open

Cannot pass a struct to 'c' function by value #321

mcsherrylabs opened this issue Feb 16, 2023 · 0 comments

Comments

@mcsherrylabs
Copy link

I can't find a way to have the c function interpret the struct by value ...

I can do this

long struct_num_al_test(SomeStruct *s) { return s -> count; }

using something in java like

public long struct_num_al_test(SomeStruct s);

But I cannot do this

long struct_num_al_test(SomeStruct s) { return s.count; }

Expected outcome: Be able to create a java api call param list that satisifies a c function expecting a struct by value

Test Case

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

No branches or pull requests

1 participant