From 6adf51a0475a5380dd2a257c984e437691dcb7e5 Mon Sep 17 00:00:00 2001 From: xoffio <38369407+Xoffio@users.noreply.github.com> Date: Wed, 18 Dec 2024 07:41:36 -0500 Subject: [PATCH] fn names changed --- frida-gum/src/process.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frida-gum/src/process.rs b/frida-gum/src/process.rs index a946d02..e6b2982 100644 --- a/frida-gum/src/process.rs +++ b/frida-gum/src/process.rs @@ -98,7 +98,7 @@ impl<'a> Process<'a> { } /// Returns a string specifying the filesystem path to the current working directory - pub fn get_current_dir(&self) -> String { + pub fn current_dir(&self) -> String { unsafe { CStr::from_ptr(_frida_g_get_current_dir()) .to_string_lossy() @@ -107,7 +107,7 @@ impl<'a> Process<'a> { } /// Returns a string specifying the filesystem path to the directory to use for temporary files - pub fn get_tmp_dir(&self) -> String { + pub fn tmp_dir(&self) -> String { unsafe { CStr::from_ptr(_frida_g_get_tmp_dir()) .to_string_lossy() @@ -116,7 +116,7 @@ impl<'a> Process<'a> { } /// Returns a string specifying the filesystem path to the current user’s home directory - pub fn get_home_dir(&self) -> String { + pub fn home_dir(&self) -> String { unsafe { CStr::from_ptr(_frida_g_get_home_dir()) .to_string_lossy() @@ -125,7 +125,7 @@ impl<'a> Process<'a> { } /// Get this thread’s OS-specific id as a number - pub fn get_current_thread_id(&self) -> u32 { + pub fn current_thread_id(&self) -> u32 { unsafe { gum_sys::gum_process_get_current_thread_id() as u32 } }