mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Add include_user_metadata parameter to Database::known_bash_tags()
The C++ wrapper defaults it to true, so the behaviour hasn't changed for existing callers.
This commit is contained in:
@@ -107,12 +107,15 @@ impl Database {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn known_bash_tags(&self) -> Result<Vec<String>, VerboseError> {
|
||||
pub fn known_bash_tags(
|
||||
&self,
|
||||
include_user_metadata: bool,
|
||||
) -> Result<Vec<String>, VerboseError> {
|
||||
Ok(self
|
||||
.0
|
||||
.read()
|
||||
.map_err(DatabaseLockPoisonError::from)?
|
||||
.known_bash_tags())
|
||||
.known_bash_tags(to_merge_mode(include_user_metadata)))
|
||||
}
|
||||
|
||||
pub fn user_known_bash_tags(&self) -> Result<Vec<String>, VerboseError> {
|
||||
|
||||
Reference in New Issue
Block a user