2019-01-07 21:46:01 +01:00
|
|
|
use std::sync::{Arc, RwLock};
|
2019-01-03 15:19:56 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub mod config;
|
|
|
|
pub(crate) mod creator;
|
2019-01-03 15:19:56 +01:00
|
|
|
pub mod directories;
|
2019-01-07 21:46:01 +01:00
|
|
|
pub mod editor_config;
|
2019-01-08 20:16:58 +01:00
|
|
|
pub mod scroll_config;
|
2019-01-03 15:19:56 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub use crate::config::config::*;
|
|
|
|
pub use crate::config::directories::*;
|
|
|
|
pub use crate::config::editor_config::*;
|
2019-01-08 20:16:58 +01:00
|
|
|
pub use crate::config::scroll_config::*;
|
2019-01-04 21:42:39 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub type ConfigAccess = Arc<RwLock<Config>>;
|
2019-01-04 21:42:39 +01:00
|
|
|
|
2019-01-07 21:46:01 +01:00
|
|
|
pub trait ConfigHolder {
|
|
|
|
fn config(&self) -> &ConfigAccess;
|
2019-01-03 15:19:56 +01:00
|
|
|
}
|