We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What's the recommended way to dealing with callback funcs, any examples of current conversions doing this?
LIB_EXPORT int32_t plc_tag_create_ex(const char *attrib_str, void (*tag_callback_func)(int32_t tag_id, int event, int status, void *userdata),
The text was updated successfully, but these errors were encountered:
With the current Go standard library supporting things like cgo.Handle, it is rather simple now to create C callback to Go functions and vice versa (see: https://github.com/golang/go/wiki/cgo#calling-go-functions-from-c).
cgo.Handle
Is there any plan to add better support for callbacks in the future? @xlab
Sorry, something went wrong.
With the current Go standard library supporting things like cgo.Handle, it is rather simple now to create C callback to Go functions and vice versa (see: https://github.com/golang/go/wiki/cgo#calling-go-functions-from-c). Is there any plan to add better support for callbacks in the future? @xlab
Dunno if you already know, but I thought to share anyway, this is how I did callbacks on a project. https://github.com/libplctag/goplctag
No branches or pull requests
What's the recommended way to dealing with callback funcs, any examples of current conversions doing this?
The text was updated successfully, but these errors were encountered: