Skip to content

Commit

Permalink
Update libparsec/crates/platform_mountpoint/src/unix/filesystem.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Marcos Medrano <[email protected]>
  • Loading branch information
FirelightFlagboy and mmmarcos authored Oct 31, 2024
1 parent 504cf78 commit 5f3cf97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libparsec/crates/platform_mountpoint/src/unix/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ pub(crate) static LOOKUP_HOOK: Mutex<
Option<Box<dyn FnMut(&FsPath) -> Option<Result<EntryStat, WorkspaceStatEntryError>> + Send>>,
> = Mutex::new(None);

/// Helper macro to add one (or multiple) capabilities to fuser config.
///
/// Example:
/// ```
/// add_capabilities!(config, <capability>)
/// add_capabilities!(config, <capability1>, ..., <capabilityN>)
/// ```
macro_rules! add_capabilities {
($config:expr, $capability:ident) => {
$config
Expand Down

0 comments on commit 5f3cf97

Please sign in to comment.