Added function ReachedState to peer
This callback exposes the state the RDP peer has reached.
This commit is contained in:
parent
40723606e4
commit
9613bd9bc6
@ -73,6 +73,7 @@ typedef int (*psPeerVirtualChannelWrite)(freerdp_peer* peer, HANDLE hChannel, co
|
||||
typedef void* (*psPeerVirtualChannelGetData)(freerdp_peer* peer, HANDLE hChannel);
|
||||
typedef int (*psPeerVirtualChannelSetData)(freerdp_peer* peer, HANDLE hChannel, void* data);
|
||||
typedef BOOL (*psPeerSetState)(freerdp_peer* peer, CONNECTION_STATE state);
|
||||
typedef BOOL (*psPeerReachedState)(freerdp_peer* peer, CONNECTION_STATE state);
|
||||
|
||||
/** @brief the result of the license callback */
|
||||
typedef enum
|
||||
@ -169,6 +170,7 @@ struct rdp_freerdp_peer
|
||||
* \note Must be called after \b Initialize as that also modifies the state.
|
||||
*/
|
||||
ALIGN64 psPeerSetState SetState;
|
||||
ALIGN64 psPeerReachedState ReachedState;
|
||||
ALIGN64 psSspiNtlmHashCallback SspiNtlmHashCallback;
|
||||
};
|
||||
|
||||
|
@ -574,6 +574,7 @@ static int peer_recv_callback_internal(rdpTransport* transport, wStream* s, void
|
||||
settings = client->context->settings;
|
||||
WINPR_ASSERT(settings);
|
||||
|
||||
IFCALL(client->ReachedState, client, rdp_get_state(rdp));
|
||||
switch (rdp_get_state(rdp))
|
||||
{
|
||||
case CONNECTION_STATE_INITIAL:
|
||||
|
Loading…
Reference in New Issue
Block a user