20 #ifndef FREERDP_CHANNEL_LOCATION_H
21 #define FREERDP_CHANNEL_LOCATION_H
23 #include <freerdp/api.h>
24 #include <freerdp/dvc.h>
25 #include <freerdp/types.h>
37 #define LOCATION_CHANNEL_NAME "location"
39 #define LOCATION_DVC_CHANNEL_NAME "Microsoft::Windows::RDS::Location"
48 PDUTYPE_LOC_RESERVED = 0x0000,
49 PDUTYPE_SERVER_READY = 0x0001,
50 PDUTYPE_CLIENT_READY = 0x0002,
51 PDUTYPE_BASE_LOCATION3D = 0x0003,
52 PDUTYPE_LOCATION2D_DELTA = 0x0004,
53 PDUTYPE_LOCATION3D_DELTA = 0x0005,
56 #define LOCATION_HEADER_SIZE 6
60 LOCATION_PDUTYPE pduType;
66 RDPLOCATION_PROTOCOL_VERSION_100 = 0x00010000,
67 RDPLOCATION_PROTOCOL_VERSION_200 = 0x00020000,
68 } RDPLOCATION_PROTOCOL_VERSION;
73 RDPLOCATION_PROTOCOL_VERSION protocolVersion;
80 RDPLOCATION_PROTOCOL_VERSION protocolVersion;
86 LOCATIONSOURCE_IP = 0x00,
87 LOCATIONSOURCE_WIFI = 0x01,
88 LOCATIONSOURCE_CELL = 0x02,
89 LOCATIONSOURCE_GNSS = 0x03,
100 double* horizontalAccuracy;
101 LOCATIONSOURCE* source;
107 double latitudeDelta;
108 double longitudeDelta;
110 double* headingDelta;
116 double latitudeDelta;
117 double longitudeDelta;
120 double* headingDelta;