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

how to use C structure of function #15

Open
guojia99 opened this issue Sep 27, 2022 · 0 comments
Open

how to use C structure of function #15

guojia99 opened this issue Sep 27, 2022 · 0 comments

Comments

@guojia99
Copy link

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)

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