diff --git a/server/notifyserver/src/app/app.rs b/server/notifyserver/src/app/app.rs new file mode 100644 index 0000000..aef15b4 --- /dev/null +++ b/server/notifyserver/src/app/app.rs @@ -0,0 +1,23 @@ +pub struct UserApp { + +} + +impl f9::app::UserApp for UserApp { + + fn get_pkg_name(&self) -> String { + return "".to_string(); + } + + fn init(&mut self) { + + } + + fn update(&mut self) { + + } + + fn uninit(&mut self) { + + } + +} diff --git a/server/notifyserver/src/app/mod.rs b/server/notifyserver/src/app/mod.rs new file mode 100644 index 0000000..309be62 --- /dev/null +++ b/server/notifyserver/src/app/mod.rs @@ -0,0 +1 @@ +pub mod app; diff --git a/server/notifyserver/src/main.rs b/server/notifyserver/src/main.rs index 76916aa..1935dfc 100755 --- a/server/notifyserver/src/main.rs +++ b/server/notifyserver/src/main.rs @@ -1,7 +1,14 @@ +use std::rc::Rc; +use std::cell::RefCell; use f9::app::App; +pub mod app; + fn main() { - App::instance().borrow_mut().init(); + App::instance().borrow_mut().init( + Rc::new(RefCell::new( + crate::app::app::UserApp{})) + ); App::instance().borrow_mut().run(); App::instance().borrow_mut().uninit(); } diff --git a/server/notifyserver/src/mod.rs b/server/notifyserver/src/mod.rs new file mode 100644 index 0000000..1f1f367 --- /dev/null +++ b/server/notifyserver/src/mod.rs @@ -0,0 +1,2 @@ +pub mod app; +asjfklsd diff --git a/third_party/r9 b/third_party/r9 index 7d22204..07d53fe 160000 --- a/third_party/r9 +++ b/third_party/r9 @@ -1 +1 @@ -Subproject commit 7d222040b1c4a6c00d15e0186e3e848e06d8aec8 +Subproject commit 07d53fe46e2580b2d9413e00404f10bdd755efb5