2019-02-06 20:15:19 +03:00
|
|
|
#include "steam_defs.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma push_macro("__cdecl")
|
|
|
|
#undef __cdecl
|
2023-05-02 11:43:23 +03:00
|
|
|
#define __cdecl
|
2019-02-06 20:15:19 +03:00
|
|
|
#include "steamworks_sdk_099x/steam_api.h"
|
2019-08-16 17:00:45 +03:00
|
|
|
#pragma pop_macro("__cdecl")
|
2019-02-06 20:15:19 +03:00
|
|
|
#include "steamclient_private.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2019-02-26 18:05:29 +03:00
|
|
|
#define SDKVER_099x
|
|
|
|
#include "struct_converters.h"
|
|
|
|
#include "cppISteamFriends_SteamFriends001.h"
|
2023-09-24 00:44:45 +03:00
|
|
|
|
|
|
|
struct cppISteamFriends_SteamFriends001
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual const char * GetPersonaName( ) = 0;
|
|
|
|
virtual void SetPersonaName( const char * ) = 0;
|
|
|
|
virtual uint32_t GetPersonaState( ) = 0;
|
|
|
|
virtual void SetPersonaState( uint32_t ) = 0;
|
|
|
|
virtual bool AddFriend( CSteamID ) = 0;
|
|
|
|
virtual bool RemoveFriend( CSteamID ) = 0;
|
|
|
|
virtual bool HasFriend( CSteamID ) = 0;
|
|
|
|
virtual uint32_t GetFriendRelationship( CSteamID ) = 0;
|
|
|
|
virtual uint32_t GetFriendPersonaState( CSteamID ) = 0;
|
|
|
|
virtual bool Deprecated_GetFriendGamePlayed( CSteamID, int32_t *, uint32_t *, uint16_t * ) = 0;
|
|
|
|
virtual const char * GetFriendPersonaName( CSteamID ) = 0;
|
|
|
|
virtual int32_t AddFriendByName( const char * ) = 0;
|
|
|
|
virtual int32_t GetFriendCount( ) = 0;
|
|
|
|
virtual CSteamID GetFriendByIndex( int32_t ) = 0;
|
|
|
|
virtual void SendMsgToFriend( CSteamID, uint32_t, const char * ) = 0;
|
|
|
|
virtual void SetFriendRegValue( CSteamID, const char *, const char * ) = 0;
|
|
|
|
virtual const char * GetFriendRegValue( CSteamID, const char * ) = 0;
|
|
|
|
virtual const char * GetFriendPersonaNameHistory( CSteamID, int32_t ) = 0;
|
|
|
|
virtual int32_t GetChatMessage( CSteamID, int32_t, void *, int32_t, uint32_t * ) = 0;
|
|
|
|
virtual bool SendMsgToFriend( CSteamID, uint32_t, const void *, int32_t ) = 0;
|
|
|
|
virtual int32_t GetChatIDOfChatHistoryStart( CSteamID ) = 0;
|
|
|
|
virtual void SetChatHistoryStart( CSteamID, int32_t ) = 0;
|
|
|
|
virtual void ClearChatHistory( CSteamID ) = 0;
|
|
|
|
virtual bool InviteFriendByEmail( const char * ) = 0;
|
|
|
|
virtual int32_t GetBlockedFriendCount( ) = 0;
|
|
|
|
virtual bool GetFriendGamePlayed( CSteamID, uint64_t *, uint32_t *, uint16_t * ) = 0;
|
|
|
|
virtual bool GetFriendGamePlayed2( CSteamID, uint64_t *, uint32_t *, uint16_t *, uint16_t * ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetPersonaName( struct cppISteamFriends_SteamFriends001_GetPersonaName_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetPersonaName( );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_SetPersonaName( struct cppISteamFriends_SteamFriends001_SetPersonaName_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
iface->SetPersonaName( params->pchPersonaName );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetPersonaState( struct cppISteamFriends_SteamFriends001_GetPersonaState_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetPersonaState( );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_SetPersonaState( struct cppISteamFriends_SteamFriends001_SetPersonaState_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
iface->SetPersonaState( params->ePersonaState );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_AddFriend( struct cppISteamFriends_SteamFriends001_AddFriend_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->AddFriend( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_RemoveFriend( struct cppISteamFriends_SteamFriends001_RemoveFriend_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->RemoveFriend( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_HasFriend( struct cppISteamFriends_SteamFriends001_HasFriend_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->HasFriend( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendRelationship( struct cppISteamFriends_SteamFriends001_GetFriendRelationship_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendRelationship( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendPersonaState( struct cppISteamFriends_SteamFriends001_GetFriendPersonaState_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendPersonaState( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_Deprecated_GetFriendGamePlayed( struct cppISteamFriends_SteamFriends001_Deprecated_GetFriendGamePlayed_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->Deprecated_GetFriendGamePlayed( params->steamIDFriend, params->pnGameID, params->punGameIP, params->pusGamePort );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendPersonaName( struct cppISteamFriends_SteamFriends001_GetFriendPersonaName_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendPersonaName( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_AddFriendByName( struct cppISteamFriends_SteamFriends001_AddFriendByName_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->AddFriendByName( params->pchEmailOrAccountName );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendCount( struct cppISteamFriends_SteamFriends001_GetFriendCount_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendCount( );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendByIndex( struct cppISteamFriends_SteamFriends001_GetFriendByIndex_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
*params->_ret = iface->GetFriendByIndex( params->iFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_SendMsgToFriend( struct cppISteamFriends_SteamFriends001_SendMsgToFriend_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
iface->SendMsgToFriend( params->steamIDFriend, params->eChatEntryType, params->pchMsgBody );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_SetFriendRegValue( struct cppISteamFriends_SteamFriends001_SetFriendRegValue_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
iface->SetFriendRegValue( params->steamIDFriend, params->pchKey, params->pchValue );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendRegValue( struct cppISteamFriends_SteamFriends001_GetFriendRegValue_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendRegValue( params->steamIDFriend, params->pchKey );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendPersonaNameHistory( struct cppISteamFriends_SteamFriends001_GetFriendPersonaNameHistory_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendPersonaNameHistory( params->steamIDFriend, params->iPersonaName );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetChatMessage( struct cppISteamFriends_SteamFriends001_GetChatMessage_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetChatMessage( params->steamIDFriend, params->iChatID, params->pvData, params->cubData, params->peChatEntryType );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_SendMsgToFriend_2( struct cppISteamFriends_SteamFriends001_SendMsgToFriend_2_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->SendMsgToFriend( params->steamIDFriend, params->eChatEntryType, params->pvMsgBody, params->cubMsgBody );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetChatIDOfChatHistoryStart( struct cppISteamFriends_SteamFriends001_GetChatIDOfChatHistoryStart_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetChatIDOfChatHistoryStart( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_SetChatHistoryStart( struct cppISteamFriends_SteamFriends001_SetChatHistoryStart_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
iface->SetChatHistoryStart( params->steamIDFriend, params->iChatID );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_ClearChatHistory( struct cppISteamFriends_SteamFriends001_ClearChatHistory_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
iface->ClearChatHistory( params->steamIDFriend );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_InviteFriendByEmail( struct cppISteamFriends_SteamFriends001_InviteFriendByEmail_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->InviteFriendByEmail( params->pchEmailAccount );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetBlockedFriendCount( struct cppISteamFriends_SteamFriends001_GetBlockedFriendCount_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetBlockedFriendCount( );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendGamePlayed( struct cppISteamFriends_SteamFriends001_GetFriendGamePlayed_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendGamePlayed( params->steamIDFriend, params->pulGameID, params->punGameIP, params->pusGamePort );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 15:34:23 +03:00
|
|
|
void cppISteamFriends_SteamFriends001_GetFriendGamePlayed2( struct cppISteamFriends_SteamFriends001_GetFriendGamePlayed2_params *params )
|
2019-02-06 20:15:19 +03:00
|
|
|
{
|
2023-09-24 00:44:45 +03:00
|
|
|
struct cppISteamFriends_SteamFriends001 *iface = (struct cppISteamFriends_SteamFriends001 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFriendGamePlayed2( params->steamIDFriend, params->pulGameID, params->punGameIP, params->pusGamePort, params->pusQueryPort );
|
2019-02-06 20:15:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|