[autodetect] expose AUTODETECT_STATE

This commit is contained in:
Armin Novak 2023-02-09 11:13:44 +01:00 committed by akallabeth
parent 7b140a12c7
commit a7c0a8c5f1
2 changed files with 11 additions and 10 deletions

View File

@ -28,6 +28,16 @@
extern "C" extern "C"
{ {
#endif #endif
typedef enum
{
AUTODETECT_STATE_INITIAL,
AUTODETECT_STATE_REQUEST,
AUTODETECT_STATE_RESPONSE,
AUTODETECT_STATE_COMPLETE,
AUTODETECT_STATE_FAIL
} AUTODETECT_STATE;
typedef struct rdp_autodetect rdpAutoDetect; typedef struct rdp_autodetect rdpAutoDetect;
typedef BOOL (*pRTTMeasureRequest)(rdpAutoDetect* autodetect, RDP_TRANSPORT_TYPE transport, typedef BOOL (*pRTTMeasureRequest)(rdpAutoDetect* autodetect, RDP_TRANSPORT_TYPE transport,
@ -65,7 +75,7 @@ extern "C"
ALIGN64 UINT32 netCharBaseRTT; /* 6 */ ALIGN64 UINT32 netCharBaseRTT; /* 6 */
ALIGN64 UINT32 netCharAverageRTT; /* 7 */ ALIGN64 UINT32 netCharAverageRTT; /* 7 */
ALIGN64 BOOL bandwidthMeasureStarted; /* 8 */ ALIGN64 BOOL bandwidthMeasureStarted; /* 8 */
ALIGN64 INT32 state; /* 9 */ ALIGN64 AUTODETECT_STATE state; /* 9 */
ALIGN64 void* custom; /* 10 */ ALIGN64 void* custom; /* 10 */
UINT64 paddingA[16 - 11]; /* 11 */ UINT64 paddingA[16 - 11]; /* 11 */

View File

@ -32,15 +32,6 @@
#include "state.h" #include "state.h"
typedef enum
{
AUTODETECT_STATE_INITIAL,
AUTODETECT_STATE_REQUEST,
AUTODETECT_STATE_RESPONSE,
AUTODETECT_STATE_COMPLETE,
AUTODETECT_STATE_FAIL
} AUTODETECT_STATE;
FREERDP_LOCAL rdpAutoDetect* autodetect_new(rdpContext* context); FREERDP_LOCAL rdpAutoDetect* autodetect_new(rdpContext* context);
FREERDP_LOCAL void autodetect_free(rdpAutoDetect* autodetect); FREERDP_LOCAL void autodetect_free(rdpAutoDetect* autodetect);
FREERDP_LOCAL state_run_t autodetect_recv_request_packet(rdpAutoDetect* autodetect, FREERDP_LOCAL state_run_t autodetect_recv_request_packet(rdpAutoDetect* autodetect,