The samples_extension works OK with C library linkage but what about C++ libraries?
I have a class based C++ library I want to use as a native extension, so we have for example:-
class Connect {
open(...);
....
}
in C++ and I want a similar class in Dart.
Looking at dart_api.h and dart_native_api.h its not clear to me how I pass class pointers back and forth from C++ to Dart and how I invoke methods on them and tie this back to the Dart class instance. How does ResolveName work with connection->open() type calls or do we do this completely differently.
OK, a bit of digging and I've sussed this now, I'm doing this in Dart :-
and in my resolver looking for the string 'Connection::open' then calling a native function. So, this means my native functions are named 'connectionOpen' and 'messageOpen' etc. so I can resolve these.