diff options
Diffstat (limited to 'src/diplonat.rs')
-rw-r--r-- | src/diplonat.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/diplonat.rs b/src/diplonat.rs new file mode 100644 index 0000000..44f6ac5 --- /dev/null +++ b/src/diplonat.rs @@ -0,0 +1,19 @@ +use igd::Gateway; + +use crate::*; + +pub struct DiplonatContext { + pub config: config::DiplonatConfig, + //pub gateway: igd::Gateway +} + +pub fn setup() -> Result<DiplonatContext, String> { + return Ok(DiplonatContext { + config: config::load_env()?, + //gateway: search_gateway(Default::default()).await + }); +} + +pub fn dloop() -> bool { + return true; +} |