Skip to content

Commit

Permalink
fn names changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoffio committed Dec 18, 2024
1 parent 616a89a commit 6adf51a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frida-gum/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand All @@ -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 }
}

Expand Down

0 comments on commit 6adf51a

Please sign in to comment.