Skip to content

Commit c048e5f

Browse files
committed
Reorder functions so vtable matches Steamworks SDK
In general we try to make sure a given header can be shared with the Steamworks SDK. I've move this into a better place when we bump the version number and release a matching SDK.
1 parent b85b0e2 commit c048e5f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

include/steam/isteamnetworkingsockets.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,13 @@ class ISteamNetworkingSockets
687687
/// SteamDatagram_CreateCert.
688688
virtual bool SetCertificate( const void *pCertificate, int cbCertificate, SteamNetworkingErrMsg &errMsg ) = 0;
689689

690+
/// Invoke all callback functions queued for this interface.
691+
/// See k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, etc
692+
///
693+
/// You don't need to call this if you are using Steam's callback dispatch
694+
/// mechanism (SteamAPI_RunCallbacks and SteamGameserver_RunCallbacks).
695+
virtual void RunCallbacks() = 0;
696+
690697
/// Reset the identity associated with this instance.
691698
/// Any open connections are closed. Any previous certificates, etc are discarded.
692699
/// You can pass a specific identity that you want to use, or you can pass NULL,
@@ -697,12 +704,6 @@ class ISteamNetworkingSockets
697704
/// a new user can sign in.
698705
virtual void ResetIdentity( const SteamNetworkingIdentity *pIdentity ) = 0;
699706

700-
/// Invoke all callback functions queued for this interface.
701-
/// See k_ESteamNetworkingConfig_Callback_ConnectionStatusChanged, etc
702-
///
703-
/// You don't need to call this if you are using Steam's callback dispatch
704-
/// mechanism (SteamAPI_RunCallbacks and SteamGameserver_RunCallbacks).
705-
virtual void RunCallbacks() = 0;
706707
protected:
707708
~ISteamNetworkingSockets(); // Silence some warnings
708709
};

0 commit comments

Comments
 (0)