FreeRDP
Loading...
Searching...
No Matches
libfreerdp/core/autodetect.h
1
20#ifndef FREERDP_LIB_CORE_AUTODETECT_H
21#define FREERDP_LIB_CORE_AUTODETECT_H
22
23#include "rdp.h"
24
25#include <freerdp/freerdp.h>
26#include <freerdp/autodetect.h>
27#include <freerdp/log.h>
28#include <freerdp/api.h>
29
30#include <winpr/stream.h>
31#include <winpr/sysinfo.h>
32
33#include "state.h"
34
35FREERDP_LOCAL void autodetect_free(rdpAutoDetect* autodetect);
36
37WINPR_ATTR_MALLOC(autodetect_free, 1)
38WINPR_ATTR_NODISCARD
39FREERDP_LOCAL rdpAutoDetect* autodetect_new(rdpContext* context);
40
41WINPR_ATTR_NODISCARD
42FREERDP_LOCAL state_run_t autodetect_recv_request_packet(rdpAutoDetect* autodetect,
43 RDP_TRANSPORT_TYPE transport, wStream* s);
44
47WINPR_ATTR_NODISCARD
48FREERDP_LOCAL state_run_t autodetect_recv_tunnel_request(rdpAutoDetect* autodetect,
49 RDP_TRANSPORT_TYPE transport, wStream* s);
50
51WINPR_ATTR_NODISCARD
52FREERDP_LOCAL state_run_t autodetect_recv_response_packet(rdpAutoDetect* autodetect,
53 RDP_TRANSPORT_TYPE transport, wStream* s);
54
55WINPR_ATTR_NODISCARD
56FREERDP_LOCAL FREERDP_AUTODETECT_STATE autodetect_get_state(rdpAutoDetect* autodetect);
57
58FREERDP_LOCAL void autodetect_register_server_callbacks(rdpAutoDetect* autodetect);
59FREERDP_LOCAL void autodetect_on_connect_time_auto_detect_begin(rdpAutoDetect* autodetect);
60FREERDP_LOCAL void autodetect_on_connect_time_auto_detect_progress(rdpAutoDetect* autodetect);
61
62#define AUTODETECT_TAG FREERDP_TAG("core.autodetect")
63
64#endif /* FREERDP_LIB_CORE_AUTODETECT_H */