1
This commit is contained in:
parent
ed7c0c1956
commit
b57440efdd
23
server/notifyserver/src/app/app.rs
Normal file
23
server/notifyserver/src/app/app.rs
Normal file
@ -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) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1
server/notifyserver/src/app/mod.rs
Normal file
1
server/notifyserver/src/app/mod.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
pub mod app;
|
@ -1,7 +1,14 @@
|
|||||||
|
use std::rc::Rc;
|
||||||
|
use std::cell::RefCell;
|
||||||
use f9::app::App;
|
use f9::app::App;
|
||||||
|
|
||||||
|
pub mod app;
|
||||||
|
|
||||||
fn main() {
|
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().run();
|
||||||
App::instance().borrow_mut().uninit();
|
App::instance().borrow_mut().uninit();
|
||||||
}
|
}
|
||||||
|
2
server/notifyserver/src/mod.rs
Normal file
2
server/notifyserver/src/mod.rs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pub mod app;
|
||||||
|
asjfklsd
|
2
third_party/r9
vendored
2
third_party/r9
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 7d222040b1c4a6c00d15e0186e3e848e06d8aec8
|
Subproject commit 07d53fe46e2580b2d9413e00404f10bdd755efb5
|
Loading…
x
Reference in New Issue
Block a user