Skip to content

feat(ffi): expose wda and wda_bridge to C/C++#89

Merged
jkcoxson merged 2 commits into
jkcoxson:masterfrom
neoarz:feat/wda-ffi
Apr 27, 2026
Merged

feat(ffi): expose wda and wda_bridge to C/C++#89
jkcoxson merged 2 commits into
jkcoxson:masterfrom
neoarz:feat/wda-ffi

Conversation

@neoarz
Copy link
Copy Markdown
Contributor

@neoarz neoarz commented Apr 26, 2026

tested on an iPhone 13 with WebDriverAgent running:
status returns the right JSON
screenshot saves a valid PNG
bridge forwards a curlrequest to the device's WDA port

spent a while testing and writing this up do review before merging

neoarz added 2 commits April 26, 2026 13:01
tested on an iPhone 13 with WebDriverAgent running:
status returns the right JSON screenshot saves a valid PNG
bridge forwards a curlrequest to the device's WDA port.

spent a while testing and writing this up do review before merging
Comment thread ffi/src/wda.rs

// --- helpers (private) ---------------------------------------------------

fn cstr_to_string(p: *const c_char) -> Result<String, IdeviceError> {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, I would definitely like to use this universally throughout FFI

@jkcoxson
Copy link
Copy Markdown
Owner

Very impressive, thank you! I appreciate this.

@jkcoxson jkcoxson merged commit 0bbd4bb into jkcoxson:master Apr 27, 2026
3 checks passed
@neoarz neoarz deleted the feat/wda-ffi branch April 27, 2026 22:03
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

Successfully merging this pull request may close these issues.

2 participants