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

Add basic support for calling Dart functions from C++ in Dart generator #123

Closed
DanielKamkha opened this issue Jan 31, 2020 · 1 comment · Fixed by #141
Closed

Add basic support for calling Dart functions from C++ in Dart generator #123

DanielKamkha opened this issue Jan 31, 2020 · 1 comment · Fixed by #141
Assignees
Labels
Projects

Comments

@DanielKamkha
Copy link
Contributor

DanielKamkha commented Jan 31, 2020

In-scope for this issue: calling Dart functions from C++ in a single-threaded scenario, with or without return values.

Out of scope: exception handling, multi-threading.

@DanielKamkha DanielKamkha added this to To do in Gluecodium via automation Jan 31, 2020
@DanielKamkha DanielKamkha self-assigned this Feb 11, 2020
@DanielKamkha DanielKamkha moved this from To do to In progress in Gluecodium Feb 11, 2020
@DanielKamkha
Copy link
Contributor Author

DanielKamkha added a commit that referenced this issue Feb 12, 2020
TODO: throwing listeners

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 12, 2020
TODO: throwing listeners

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 12, 2020
TODO: throwing listeners

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 12, 2020
TODO: throwing listeners

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 12, 2020
TODO: throwing listeners

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 13, 2020
TODO: throwing listeners
TODO: listener return values

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 13, 2020
TODO: throwing listeners
TODO: listener return values

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 13, 2020
TODO: throwing listeners

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
@DanielKamkha DanielKamkha changed the title Add support for calling Dart functions from C++ in Dart generator Add basic support for calling Dart functions from C++ in Dart generator Feb 14, 2020
DanielKamkha added a commit that referenced this issue Feb 14, 2020
TODO: smoke tests

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 14, 2020
Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 14, 2020
Updated Dart and FFI templates to avoid re-using the FFI handle stored
in Dart classes and instead pass it around as a copy. This enables
proper releasing of such handles, which will be required for "proxy"
infrastructure implementation for #123.

Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 14, 2020
Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 14, 2020
Updated Dart and FFI templates to avoid re-using the FFI handle stored
in Dart classes and instead pass it around as a copy. This enables
proper releasing of such handles, which will be required for "proxy"
infrastructure implementation for #123.

Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 14, 2020
TODO: add smoke tests

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 14, 2020
TODO: add smoke tests

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 17, 2020
Updated Dart and FFI templates to avoid re-using the FFI handle stored
in Dart classes and instead pass it around as a copy. This enables
proper releasing of such handles, which will be required for "proxy"
infrastructure implementation for #123.

Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 17, 2020
Updated Dart and FFI templates to generate "proxy" C++ classes
representing callable Dart interfaces in C++. This supports basic use
cases of calling Dart callbacks from C++ in the same thread, with or
without return value. Error handling and multithreading will be done
separately.

Added/updated smoke and functional tests as appropriate.

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 17, 2020
Updated Dart and FFI templates to avoid re-using the FFI handle stored
in Dart classes and instead pass it around as a copy. This enables
proper releasing of such handles, which will be required for "proxy"
infrastructure implementation for #123.

Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 17, 2020
Updated Dart and FFI templates to generate "proxy" C++ classes
representing callable Dart interfaces in C++. This supports basic use
cases of calling Dart callbacks from C++ in the same thread, with or
without return value. Error handling and multithreading will be done
separately.

Added/updated smoke and functional tests as appropriate.

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
DanielKamkha added a commit that referenced this issue Feb 17, 2020
Updated Dart and FFI templates to generate "proxy" C++ classes
representing callable Dart interfaces in C++. This supports basic use
cases of calling Dart callbacks from C++ in the same thread, with or
without return value. Error handling and multithreading will be done
separately.

Added/updated smoke and functional tests as appropriate.

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
Gluecodium automation moved this from In progress to Done Feb 18, 2020
DanielKamkha added a commit that referenced this issue Feb 18, 2020
Updated Dart and FFI templates to generate "proxy" C++ classes
representing callable Dart interfaces in C++. This supports basic use
cases of calling Dart callbacks from C++ in the same thread, with or
without return value. Error handling and multithreading will be done
separately.

Added/updated smoke and functional tests as appropriate.

Resolves: #123
Signed-off-by: Daniel Kamkha <daniel.kamkha@here.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant