Skip to content

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

@mcsherrylabs

Description

@mcsherrylabs

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions