From 923de9b3dfeebdba72cb70151b2b5a450997b7e1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 21 Oct 2018 09:56:05 +0200 Subject: Rename `config_read_from_file` to `config_get` For the same reason that we renamed the Rust version of this function to `get_config`, rename this function also. (Since we're not necessarily getting the config from a file.) --- src/cocoa_bridge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cocoa_bridge.rs b/src/cocoa_bridge.rs index 1dbd187..7b707de 100644 --- a/src/cocoa_bridge.rs +++ b/src/cocoa_bridge.rs @@ -332,7 +332,7 @@ pub extern "C" fn c_parse_args( } #[no_mangle] -pub extern "C" fn config_read_from_file() -> *mut Config { +pub extern "C" fn config_get() -> *mut Config { match config::get_config() { Ok(config) => Box::into_raw(Box::new(config)), Err(e) => { -- cgit v1.2.3