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
30
31
32
33
34
35
36
37
38
39
40
41
42
use libc::*;
use config::*;
use path::*;
use allegro_util::c_bool;
opaque!(ALLEGRO_SYSTEM);
extern "C"
{
pub fn al_install_system(version: c_int, atexit_ptr: Option<extern "C" fn(atexit_ptr: extern "C" fn()) -> c_int>) -> c_bool;
pub fn al_uninstall_system();
pub fn al_is_system_installed() -> c_bool;
pub fn al_get_system_driver() -> *mut ALLEGRO_SYSTEM;
pub fn al_get_system_config() -> *mut ALLEGRO_CONFIG;
}
pub const ALLEGRO_RESOURCES_PATH: i32 = 0;
pub const ALLEGRO_TEMP_PATH: i32 = 1;
pub const ALLEGRO_USER_DATA_PATH: i32 = 2;
pub const ALLEGRO_USER_HOME_PATH: i32 = 3;
pub const ALLEGRO_USER_SETTINGS_PATH: i32 = 4;
pub const ALLEGRO_USER_DOCUMENTS_PATH: i32 = 5;
pub const ALLEGRO_EXENAME_PATH: i32 = 6;
pub const ALLEGRO_LAST_PATH: i32 = 7;
extern "C"
{
pub fn al_get_standard_path(id: c_int) -> *mut ALLEGRO_PATH;
pub fn al_set_exe_name(path: *const c_char);
pub fn al_set_org_name(org_name: *const c_char);
pub fn al_set_app_name(app_name: *const c_char);
pub fn al_get_org_name() -> *const c_char;
pub fn al_get_app_name() -> *const c_char;
pub fn al_inhibit_screensaver(inhibit: c_uchar) -> c_bool;
}