aboutsummaryrefslogtreecommitdiff
path: root/steamworks-sys
diff options
context:
space:
mode:
authorMatthew Collins <[email protected]>2018-03-01 13:21:58 +0000
committerMatthew Collins <[email protected]>2018-03-01 13:21:58 +0000
commit87f12035204ac34a0c394e3770ec0f3048900702 (patch)
tree7cc6a57a49de1c46e48c2d4685255a273ee00bab /steamworks-sys
parentDon't require the manager to implement Clone for the client to be clonable (diff)
downloadsteamworks-rs-87f12035204ac34a0c394e3770ec0f3048900702.tar.xz
steamworks-rs-87f12035204ac34a0c394e3770ec0f3048900702.zip
Replace Cow<str> with String in the API
The steamworks API states that returned strings may be freed at any time and must not be stored. Also adds a way to get the current user's name.
Diffstat (limited to 'steamworks-sys')
-rw-r--r--steamworks-sys/Cargo.toml2
-rw-r--r--steamworks-sys/src/lib.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/steamworks-sys/Cargo.toml b/steamworks-sys/Cargo.toml
index d3b22cb..2d89333 100644
--- a/steamworks-sys/Cargo.toml
+++ b/steamworks-sys/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "steamworks-sys"
-version = "0.2.0"
+version = "0.2.1"
authors = ["Thinkofname"]
build = "build.rs"
description = "Provides raw bindings to the steamworks sdk"
diff --git a/steamworks-sys/src/lib.rs b/steamworks-sys/src/lib.rs
index 42b5049..768cddc 100644
--- a/steamworks-sys/src/lib.rs
+++ b/steamworks-sys/src/lib.rs
@@ -311,6 +311,7 @@ extern "C" {
pub fn SteamAPI_ISteamFriends_GetFriendPersonaState(instance: *mut ISteamFriends, friend: u64) -> PersonaState;
pub fn SteamAPI_ISteamFriends_RequestUserInformation(instance: *mut ISteamFriends, user_id: u64, name_only: u8) -> u8;
pub fn SteamAPI_ISteamFriends_ActivateGameOverlayToWebPage(instance: *mut ISteamFriends, url: *const c_char);
+ pub fn SteamAPI_ISteamFriends_GetPersonaName(instance: *mut ISteamFriends) -> *const c_char;
pub fn SteamAPI_ISteamMatchmaking_CreateLobby(instance: *mut ISteamMatchmaking, lobby_ty: LobbyType, max_members: c_int) -> SteamAPICall;
pub fn SteamAPI_ISteamMatchmaking_RequestLobbyList(instance: *mut ISteamMatchmaking) -> SteamAPICall;