Skip to content

how to use C structure of function #15

@guojia99

Description

@guojia99

how to use the C structure to like func(data C.VERSION) to dl?

C code:
typedef struct VERSION {
char modelVersion[MAX_LENGTH];
char sdkVersion[MAX_LENGTH];
} VERSION;

want go code like:
f := func(data *C.VERSION) int
client.Sym("GetVersion", &f)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions