Skip to content

Commit

Permalink
chore: make pro_directory_current_get public
Browse files Browse the repository at this point in the history
  • Loading branch information
pevers committed Feb 22, 2024
1 parent b4b2999 commit de04959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ members = [
"crates/creo-rs",
"crates/creo-sys",
]
resolver = "2"
2 changes: 1 addition & 1 deletion crates/creo-rs/src/pro_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::pro_toolkit_errors::ProErrors;
/// # Errors
///
/// * `PRO_TK_E_NOT_FOUND` - The function was unable to find current working directory.
fn pro_directory_current_get() -> Result<String, ProErrors> {
pub fn pro_directory_current_get() -> Result<String, ProErrors> {
unsafe {
let mut dir_path = [0; creo_sys::PRO_PATH_SIZE as usize];
let status = creo_sys::ProDirectoryCurrentGet(dir_path.as_mut_ptr());
Expand Down

0 comments on commit de04959

Please sign in to comment.