-
Notifications
You must be signed in to change notification settings - Fork 77
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
API doesn't expose runtimeLib #40
Comments
DartNative doesn't support global C function for now, but you can call it using When you pass an instance of |
That clears everything up. Thanks very much for your help. |
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to manually call a global function and was expecting to be able to use dart-native's dynamic library
runtimeLib
. I've realized this is not exposed in the API and am wondering how I would access dart-native's dynamic library as is. My thoughts wereDynamicLibrary.open('dart_native.framework/dart_native');
but I'm unsure as to whether I need to manually register a dealloc callback for the dynamic library in this scenario and whether my lib instance and yours would conflict.below is all the code I'm using to access the global function. I should note, I'm getting syntax errors on this saying "Type given to lookup function must be a valid 'dart.ffi' native function type" despite CFURLRef doing nothing but extending a Struct
class CFURLRef extends Struct{}
It's my understanding Struct is a native type. Any thoughts as to what's going on here?
The text was updated successfully, but these errors were encountered: