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 warp JS variables into a struct then pass it to C++ API? #2

Closed
RuixuanDai opened this issue Oct 6, 2017 · 3 comments
Closed

Comments

@RuixuanDai
Copy link

Hi,
I have another question, Please help me.

I want to warp JS variables into a struct then pass it to C++ API.

To be specific, I want to call the following API in JS.

    static MblMwLogDownloadHandler download_handler = { progress_update, unknown_entry };
    // start a log download and send 100 progress notifications
    mbl_mw_logging_download(board, 100, &download_handler);

Thanks in advance

@RuixuanDai
Copy link
Author

Can you give me an example in JS about how to start logging, download logger, and handle the logger? I do not known how to do even after reading the documentation of C++.

Thanks .

@sschiffli
Copy link
Contributor

Please see our new example here

@RuixuanDai
Copy link
Author

Really appreciate your work.
Thank you so much.

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

2 participants