1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
pub mod c;
pub use c::ApplicationImpl;
use std::os::raw::{c_char, c_int};
pub trait ApplicationExt: Copy {
fn assert_correct_thread( &self );
fn dispatch( &self, work: unsafe fn(ApplicationImpl, *mut ()), data: *mut () ) -> bool;
fn exit( &self, exit_code: i32 );
fn exit_threadsafe( self: &Self, exit_code: i32 );
fn finish( &self ) {}
fn initialize( argc: c_int, argv: *mut *mut c_char, settings: &ApplicationSettings ) -> ApplicationImpl;
fn run( &self, on_ready: unsafe fn(ApplicationImpl, *mut ()), data: *mut () ) -> i32;
}
#[derive(Default)]
pub struct ApplicationSettings {
}