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
use esplugin::GameId;

use libc::uint32_t;

#[no_mangle]
pub static ESPM_OK: uint32_t = 0;

#[no_mangle]
pub static ESPM_ERROR_NULL_POINTER: uint32_t = 1;

#[no_mangle]
pub static ESPM_ERROR_NOT_UTF8: uint32_t = 2;

#[no_mangle]
pub static ESPM_ERROR_STRING_CONTAINS_NUL: uint32_t = 3;

#[no_mangle]
pub static ESPM_ERROR_INVALID_GAME_ID: uint32_t = 4;

#[no_mangle]
pub static ESPM_ERROR_PARSE_ERROR: uint32_t = 4;

#[no_mangle]
pub static ESPM_GAME_OBLIVION: uint32_t = GameId::Oblivion as uint32_t;

#[no_mangle]
pub static ESPM_GAME_SKYRIM: uint32_t = GameId::Skyrim as uint32_t;

#[no_mangle]
pub static ESPM_GAME_FALLOUT3: uint32_t = GameId::Fallout3 as uint32_t;

#[no_mangle]
pub static ESPM_GAME_FALLOUTNV: uint32_t = GameId::FalloutNV as uint32_t;

#[no_mangle]
pub static ESPM_GAME_MORROWIND: uint32_t = GameId::Morrowind as uint32_t;

#[no_mangle]
pub static ESPM_GAME_FALLOUT4: uint32_t = GameId::Fallout4 as uint32_t;