diff options
| author | Matthew Collins <[email protected]> | 2018-05-02 21:12:13 +0100 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2018-05-02 21:17:00 +0100 |
| commit | 4e5a0ced33f810284b26eae661d1e1b7fafa3d42 (patch) | |
| tree | a1ab8283350aee2a3d182098f025070b2af12f83 /steamworks-sys/src/lib.rs | |
| parent | Cleanup callback handling. (diff) | |
| download | steamworks-rs-4e5a0ced33f810284b26eae661d1e1b7fafa3d42.tar.xz steamworks-rs-4e5a0ced33f810284b26eae661d1e1b7fafa3d42.zip | |
Add restart_app_if_necessary
Diffstat (limited to 'steamworks-sys/src/lib.rs')
| -rw-r--r-- | steamworks-sys/src/lib.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/steamworks-sys/src/lib.rs b/steamworks-sys/src/lib.rs index b796f77..5fbb565 100644 --- a/steamworks-sys/src/lib.rs +++ b/steamworks-sys/src/lib.rs @@ -241,7 +241,7 @@ pub struct CallbackData { pub run: unsafe extern "C" fn(*mut c_void, *mut c_void, *mut c_void), pub run_extra: unsafe extern "C" fn(*mut c_void, *mut c_void, *mut c_void, bool, SteamAPICall), pub dealloc: unsafe extern "C" fn(*mut c_void, *mut c_void), -} +} extern "C" { // Helpers from lib.cpp @@ -258,7 +258,7 @@ extern "C" { pub fn steam_rust_get_server_apps() -> *mut ISteamApps; pub fn steam_rust_game_server_init(ip: u32, steam_port: u16, game_port: u16, query_port: u16, server_mode: ServerMode, version: *const c_char) -> c_int; - + // pub fn SteamAPI_Init() -> u8; @@ -268,6 +268,7 @@ extern "C" { pub fn SteamAPI_UnregisterCallback(pCallback: *mut c_void); pub fn SteamAPI_RegisterCallResult(pCallback: *mut c_void, api_call: SteamAPICall); pub fn SteamAPI_UnregisterCallResult(pCallback: *mut c_void, api_call: SteamAPICall); + pub fn SteamAPI_RestartAppIfNecessary(app_id: u32) -> u8; pub fn SteamGameServer_Shutdown(); pub fn SteamGameServer_RunCallbacks(); |