diff options
-rw-r--r-- | src/lib.rs | 10 | ||||
-rw-r--r-- | src/options.rs | 2 |
2 files changed, 10 insertions, 2 deletions
@@ -643,11 +643,19 @@ impl Builder { /// Whitelist the given function so that it (and all types that it /// transitively refers to) appears in the generated bindings. Regular /// expressions are supported. - pub fn whitelisted_function<T: AsRef<str>>(mut self, arg: T) -> Builder { + pub fn whitelist_function<T: AsRef<str>>(mut self, arg: T) -> Builder { self.options.whitelisted_functions.insert(arg); self } + /// Whitelist the given function. + /// + /// Deprecated: use whitelist_function instead. + #[deprecated = "use whitelist_function instead"] + pub fn whitelisted_function<T: AsRef<str>>(self, arg: T) -> Builder { + self.whitelist_function(arg) + } + /// Whitelist the given variable so that it (and all types that it /// transitively refers to) appears in the generated bindings. Regular /// expressions are supported. diff --git a/src/options.rs b/src/options.rs index 383a8899..47d6f33b 100644 --- a/src/options.rs +++ b/src/options.rs @@ -473,7 +473,7 @@ where if let Some(whitelist) = matches.values_of("whitelist-function") { for regex in whitelist { - builder = builder.whitelisted_function(regex); + builder = builder.whitelist_function(regex); } } |