Add missing header include guards.

This commit is contained in:
redpolline 2024-06-07 05:32:35 -04:00
parent ae6e1829dd
commit 8e8355c013
33 changed files with 167 additions and 2 deletions

View file

@ -1,4 +1,7 @@
#ifndef APPTICKET_H
#define APPTICKET_H
struct AppTicketV1 struct AppTicketV1
{ {
// Total ticket size - 16 // Total ticket size - 16
@ -297,4 +300,6 @@ public:
return buffer; return buffer;
} }
}; };
#endif // APPTICKET_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_HTMLSURFACE_H
#define INCLUDED_STEAM_HTMLSURFACE_H
class Steam_HTMLsurface : class Steam_HTMLsurface :
public ISteamHTMLSurface001, public ISteamHTMLSurface001,
public ISteamHTMLSurface002, public ISteamHTMLSurface002,
@ -337,3 +340,5 @@ void FileLoadDialogResponse( HHTMLBrowser unBrowserHandle, const char **pchSelec
} }
}; };
#endif // INCLUDED_STEAM_HTMLSURFACE_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_APPLIST_H
#define INCLUDED_STEAM_APPLIST_H
class Steam_Applist : public ISteamAppList class Steam_Applist : public ISteamAppList
{ {
public: public:
@ -28,3 +31,5 @@ public:
int GetAppBuildId( AppId_t nAppID ); // return the buildid of this app, may change at any time based on backend updates to the game int GetAppBuildId( AppId_t nAppID ); // return the buildid of this app, may change at any time based on backend updates to the game
}; };
#endif // INCLUDED_STEAM_APPLIST_H

View file

@ -1,5 +1,8 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_APPS_H
#define INCLUDED_STEAM_APPS_H
class Steam_Apps : class Steam_Apps :
public ISteamApps001, public ISteamApps001,
public ISteamApps002, public ISteamApps002,
@ -110,3 +113,5 @@ public:
// set current DLC AppID being played (or 0 if none). Allows Steam to track usage of major DLC extensions // set current DLC AppID being played (or 0 if none). Allows Steam to track usage of major DLC extensions
bool SetDlcContext( AppId_t nAppID ); bool SetDlcContext( AppId_t nAppID );
}; };
#endif // INCLUDED_STEAM_APPS_H

View file

@ -53,6 +53,9 @@
#include "../overlay_experimental/steam_overlay.h" #include "../overlay_experimental/steam_overlay.h"
#ifndef INCLUDED_STEAM_CLIENT_H
#define INCLUDED_STEAM_CLIENT_H
enum Steam_Pipe { enum Steam_Pipe {
NO_USER, NO_USER,
CLIENT, CLIENT,
@ -303,3 +306,5 @@ public:
void DestroyAllInterfaces(); void DestroyAllInterfaces();
}; };
#endif // INCLUDED_STEAM_CLIENT_H

View file

@ -16,6 +16,10 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_CONTROLLER_H
#define INCLUDED_STEAM_CONTROLLER_H
#ifndef CONTROLLER_SUPPORT #ifndef CONTROLLER_SUPPORT
inline void GamepadInit(void) {} inline void GamepadInit(void) {}
inline void GamepadShutdown(void) {} inline void GamepadShutdown(void) {}
@ -1224,3 +1228,5 @@ void RunCallbacks()
} }
}; };
#endif // INCLUDED_STEAM_CONTROLLER_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_GAME_COORDINATOR_H
#define INCLUDED_STEAM_GAME_COORDINATOR_H
class Steam_Game_Coordinator : class Steam_Game_Coordinator :
public ISteamGameCoordinator public ISteamGameCoordinator
{ {
@ -152,3 +155,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_GAME_COORDINATOR_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_GAMESEARCH_H
#define INCLUDED_STEAM_GAMESEARCH_H
class Steam_Game_Search : class Steam_Game_Search :
public ISteamGameSearch public ISteamGameSearch
{ {
@ -213,3 +216,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_GAMESEARCH_H

View file

@ -16,7 +16,10 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_GAMESERVER_H
#define INCLUDED_STEAM_GAMESERVER_H
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: Functions for authenticating users via Steam to play on a game server // Purpose: Functions for authenticating users via Steam to play on a game server
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -353,3 +356,5 @@ public:
// //
void RunCallbacks(); void RunCallbacks();
}; };
#endif // INCLUDED_STEAM_GAMESERVER_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_GAMESERVERSTATS_H
#define INCLUDED_STEAM_GAMESERVERSTATS_H
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Purpose: Functions for authenticating users via Steam to play on a game server // Purpose: Functions for authenticating users via Steam to play on a game server
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -61,3 +64,5 @@ public:
STEAM_CALL_RESULT( GSStatsStored_t ) STEAM_CALL_RESULT( GSStatsStored_t )
SteamAPICall_t StoreUserStats( CSteamID steamIDUser ); SteamAPICall_t StoreUserStats( CSteamID steamIDUser );
}; };
#endif // INCLUDED_STEAM_GAMESERVERSTATS_H

View file

@ -17,6 +17,8 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_HTTP_H
#define INCLUDED_STEAM_HTTP_H
struct Steam_Http_Request { struct Steam_Http_Request {
HTTPRequestHandle handle; HTTPRequestHandle handle;
@ -152,3 +154,5 @@ public:
// Check if the reason the request failed was because we timed it out (rather than some harder failure) // Check if the reason the request failed was because we timed it out (rather than some harder failure)
bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest, bool *pbWasTimedOut ); bool GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest, bool *pbWasTimedOut );
}; };
#endif // INCLUDED_STEAM_HTTP_H

View file

@ -17,6 +17,9 @@
#include "base.h" // For SteamItemDef_t #include "base.h" // For SteamItemDef_t
#ifndef INCLUDED_STEAM_INVENTORY_H
#define INCLUDED_STEAM_INVENTORY_H
struct Steam_Inventory_Requests { struct Steam_Inventory_Requests {
double timeout = 0.1; double timeout = 0.1;
bool done = false; bool done = false;
@ -964,3 +967,5 @@ void RunCallbacks()
} }
}; };
#endif // INCLUDED_STEAM_INVENTORY_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_MASTERSERVER_UPDATER_H
#define INCLUDED_STEAM_MASTERSERVER_UPDATER_H
class Steam_Masterserver_Updater : class Steam_Masterserver_Updater :
public ISteamMasterServerUpdater public ISteamMasterServerUpdater
{ {
@ -300,3 +303,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_MASTERSERVER_UPDATER_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_MATCHMAKING_H
#define INCLUDED_STEAM_MATCHMAKING_H
#define SEND_LOBBY_RATE 5.0 #define SEND_LOBBY_RATE 5.0
#define PENDING_JOIN_TIMEOUT 10.0 #define PENDING_JOIN_TIMEOUT 10.0
@ -1547,3 +1550,5 @@ void Callback(Common_Message *msg)
}; };
#endif // INCLUDED_STEAM_MATCHMAKING_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_MATCHMAKING_SERVERS_H
#define INCLUDED_STEAM_MATCHMAKING_SERVERS_H
#define SERVER_TIMEOUT 10.0 #define SERVER_TIMEOUT 10.0
#define DIRECT_IP_DELAY 0.05 #define DIRECT_IP_DELAY 0.05
@ -223,3 +226,5 @@ public:
void Callback(Common_Message *msg); void Callback(Common_Message *msg);
void server_details(Gameserver *g, gameserveritem_t *server); void server_details(Gameserver *g, gameserveritem_t *server);
}; };
#endif // INCLUDED_STEAM_MATCHMAKING_SERVERS_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_MUSIC_H
#define INCLUDED_STEAM_MUSIC_H
class Steam_Music : public ISteamMusic class Steam_Music : public ISteamMusic
{ {
int playing; int playing;
@ -41,3 +44,5 @@ public:
void SetVolume( float flVolume ); void SetVolume( float flVolume );
float GetVolume(); float GetVolume();
}; };
#endif // INCLUDED_STEAM_MUSIC_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_MUSICREMOTE_H
#define INCLUDED_STEAM_MUSICREMOTE_H
class Steam_MusicRemote : public ISteamMusicRemote class Steam_MusicRemote : public ISteamMusicRemote
{ {
public: public:
@ -65,3 +68,5 @@ public:
bool SetCurrentPlaylistEntry( int nID ); bool SetCurrentPlaylistEntry( int nID );
bool PlaylistDidChange(); bool PlaylistDidChange();
}; };
#endif // INCLUDED_STEAM_MUSICREMOTE_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_NETWORKING_H
#define INCLUDED_STEAM_NETWORKING_H
//packet timeout in seconds for non connections //packet timeout in seconds for non connections
#define ORPHANED_PACKET_TIMEOUT (20) #define ORPHANED_PACKET_TIMEOUT (20)
#define NEW_CONNECTION_TIMEOUT (20.0) #define NEW_CONNECTION_TIMEOUT (20.0)
@ -1026,3 +1029,5 @@ void Callback(Common_Message *msg)
} }
} }
}; };
#endif // INCLUDED_STEAM_NETWORKING_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_NETWORKING_MESSAGES
#define INCLUDED_STEAM_NETWORKING_MESSAGES
#define NETWORKING_MESSAGES_TIMEOUT 30.0 #define NETWORKING_MESSAGES_TIMEOUT 30.0
struct Steam_Message_Connection { struct Steam_Message_Connection {
@ -444,3 +447,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_NETWORKING_MESSAGES

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_NETWORKING_SOCKETS_H
#define INCLUDED_STEAM_NETWORKING_SOCKETS_H
struct Listen_Socket { struct Listen_Socket {
HSteamListenSocket socket_id; HSteamListenSocket socket_id;
@ -2110,3 +2113,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_NETWORKING_SOCKETS_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_NETWORKING_SOCKETS_SERIALIZED_H
#define INCLUDED_STEAM_NETWORKING_SOCKETS_SERIALIZED_H
class Steam_Networking_Sockets_Serialized : class Steam_Networking_Sockets_Serialized :
public ISteamNetworkingSocketsSerialized002, public ISteamNetworkingSocketsSerialized002,
public ISteamNetworkingSocketsSerialized003, public ISteamNetworkingSocketsSerialized003,
@ -154,3 +157,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_NETWORKING_SOCKETS_SERIALIZED_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_NETWORKING_UTILS_H
#define INCLUDED_STEAM_NETWORKING_UTILS_H
class Steam_Networking_Utils : class Steam_Networking_Utils :
public ISteamNetworkingUtils001, public ISteamNetworkingUtils001,
public ISteamNetworkingUtils002, public ISteamNetworkingUtils002,
@ -749,3 +752,5 @@ void Callback(Common_Message *msg)
}; };
#endif // INCLUDED_STEAM_NETWORKING_UTILS_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_PARENTAL_H
#define INCLUDED_STEAM_PARENTAL_H
class Steam_Parental : public ISteamParentalSettings class Steam_Parental : public ISteamParentalSettings
{ {
public: public:
@ -29,3 +32,5 @@ public:
bool BIsFeatureBlocked( EParentalFeature eFeature ); bool BIsFeatureBlocked( EParentalFeature eFeature );
bool BIsFeatureInBlockList( EParentalFeature eFeature ); bool BIsFeatureInBlockList( EParentalFeature eFeature );
}; };
#endif // INCLUDED_STEAM_PARENTAL_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_PARTIES_H
#define INCLUDED_STEAM_PARTIES_H
class Steam_Parties : class Steam_Parties :
public ISteamParties public ISteamParties
{ {
@ -192,3 +195,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_PARTIES_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_REMOTE_STORAGE_H
#define INCLUDED_STEAM_REMOTE_STORAGE_H
struct Async_Read { struct Async_Read {
SteamAPICall_t api_call; SteamAPICall_t api_call;
uint32 offset; uint32 offset;
@ -791,3 +794,5 @@ bool EndFileWriteBatch()
}; };
#endif // INCLUDED_STEAM_REMOTE_STORAGE_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_REMOTEPLAY_H
#define INCLUDED_STEAM_REMOTEPLAY_H
class Steam_RemotePlay : class Steam_RemotePlay :
public ISteamRemotePlay public ISteamRemotePlay
{ {
@ -111,3 +114,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_REMOTEPLAY_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_SCREENSHOTS_H
#define INCLUDED_STEAM_SCREENSHOTS_H
struct screenshot_infos_t struct screenshot_infos_t
{ {
std::string screenshot_name; std::string screenshot_name;
@ -73,3 +76,5 @@ public:
// JPEG, TGA, and PNG formats are supported. // JPEG, TGA, and PNG formats are supported.
ScreenshotHandle AddVRScreenshotToLibrary( EVRScreenshotType eType, const char *pchFilename, const char *pchVRFilename ); ScreenshotHandle AddVRScreenshotToLibrary( EVRScreenshotType eType, const char *pchFilename, const char *pchVRFilename );
}; };
#endif // INCLUDED_STEAM_SCREENSHOTS_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_TV_H
#define INCLUDED_STEAM_TV_H
class Steam_TV : class Steam_TV :
public ISteamTV public ISteamTV
{ {
@ -122,3 +125,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_TV_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_UGC_H
#define INCLUDED_STEAM_UGC_H
struct UGC_query { struct UGC_query {
UGCQueryHandle_t handle; UGCQueryHandle_t handle;
std::set<PublishedFileId_t> return_only; std::set<PublishedFileId_t> return_only;
@ -903,3 +906,5 @@ SteamAPICall_t GetWorkshopEULAStatus()
}; };
#endif // INCLUDED_STEAM_UGC_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_UNIFIED_MESSAGES_H
#define INCLUDED_STEAM_UNIFIED_MESSAGES_H
class Steam_Unified_Messages : class Steam_Unified_Messages :
public ISteamUnifiedMessages public ISteamUnifiedMessages
{ {
@ -121,3 +124,5 @@ void Callback(Common_Message *msg)
} }
}; };
#endif // INCLUDED_STEAM_UNIFIED_MESSAGES_H

View file

@ -19,6 +19,9 @@
#include "appticket.h" #include "appticket.h"
#ifndef INCLUDED_STEAM_USER_H
#define INCLUDED_STEAM_USER_H
class Steam_User : class Steam_User :
public ISteamUser009, public ISteamUser009,
public ISteamUser010, public ISteamUser010,
@ -532,3 +535,5 @@ bool BSetDurationControlOnlineState( EDurationControlOnlineState eNewState )
} }
}; };
#endif // INCLUDED_STEAM_USER_H

View file

@ -19,6 +19,9 @@
#include "local_storage.h" #include "local_storage.h"
#include "../overlay_experimental/steam_overlay.h" #include "../overlay_experimental/steam_overlay.h"
#ifndef INCLUDED_STEAM_UTILS_H
#define INCLUDED_STEAM_UTILS_H
static std::chrono::time_point<std::chrono::steady_clock> app_initialized_time = std::chrono::steady_clock::now(); static std::chrono::time_point<std::chrono::steady_clock> app_initialized_time = std::chrono::steady_clock::now();
@ -442,3 +445,5 @@ bool DismissFloatingGamepadTextInput()
} }
}; };
#endif // INCLUDED_STEAM_UTILS_H

View file

@ -17,6 +17,9 @@
#include "base.h" #include "base.h"
#ifndef INCLUDED_STEAM_VIDEO_H
#define INCLUDED_STEAM_VIDEO_H
class Steam_Video : public ISteamVideo class Steam_Video : public ISteamVideo
{ {
public: public:
@ -32,3 +35,5 @@ public:
void GetOPFSettings( AppId_t unVideoAppID ); void GetOPFSettings( AppId_t unVideoAppID );
bool GetOPFStringForApp( AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize ); bool GetOPFStringForApp( AppId_t unVideoAppID, char *pchBuffer, int32 *pnBufferSize );
}; };
#endif // INCLUDED_STEAM_VIDEO_H