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 get_remote_device #133

Merged
merged 4 commits into from
Jul 11, 2024
Merged

Add get_remote_device #133

merged 4 commits into from
Jul 11, 2024

Conversation

SajjadPourali
Copy link
Contributor

@SajjadPourali SajjadPourali commented Apr 25, 2024

Feel free to rename the function or make any modifications

Copy link
Contributor

@s1341 s1341 left a comment

Choose a reason for hiding this comment

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

Apologies for not getting to this till now. Looks good, except for the one comment.

/// Returns the remote device with the specified host.
pub fn get_remote_device(&'a self, host: &str) -> Result<Device<'a>> {
let mut error: *mut frida_sys::GError = std::ptr::null_mut();
let Ok(host_cstring) = CString::new(host) else {
Copy link
Contributor

@s1341 s1341 Jun 4, 2024

Choose a reason for hiding this comment

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

This should be:

let host_cstring = CString::new("message").map_err(|_| Error::CStringFailed)?;

@SajjadPourali SajjadPourali requested a review from s1341 July 8, 2024 15:12
@s1341
Copy link
Contributor

s1341 commented Jul 9, 2024

CI is failing....

@s1341 s1341 merged commit f2487bc into frida:main Jul 11, 2024
15 checks passed
@s1341
Copy link
Contributor

s1341 commented Jul 11, 2024

Thanks!

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