/src/FreeRDP/libfreerdp/core/input.h
Line | Count | Source (jump to first uncovered line) |
1 | | /** |
2 | | * FreeRDP: A Remote Desktop Protocol Implementation |
3 | | * Input PDUs |
4 | | * |
5 | | * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> |
6 | | * |
7 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
8 | | * you may not use this file except in compliance with the License. |
9 | | * You may obtain a copy of the License at |
10 | | * |
11 | | * http://www.apache.org/licenses/LICENSE-2.0 |
12 | | * |
13 | | * Unless required by applicable law or agreed to in writing, software |
14 | | * distributed under the License is distributed on an "AS IS" BASIS, |
15 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | | * See the License for the specific language governing permissions and |
17 | | * limitations under the License. |
18 | | */ |
19 | | |
20 | | #ifndef FREERDP_LIB_CORE_INPUT_H |
21 | | #define FREERDP_LIB_CORE_INPUT_H |
22 | | |
23 | | #include "rdp.h" |
24 | | #include "fastpath.h" |
25 | | #include "message.h" |
26 | | |
27 | | #include <freerdp/input.h> |
28 | | #include <freerdp/freerdp.h> |
29 | | #include <freerdp/api.h> |
30 | | |
31 | | #include <winpr/stream.h> |
32 | | |
33 | | typedef struct |
34 | | { |
35 | | rdpInput common; |
36 | | /* Internal */ |
37 | | |
38 | | rdpInputProxy* proxy; |
39 | | wMessageQueue* queue; |
40 | | |
41 | | UINT64 lastInputTimestamp; |
42 | | UINT16 lastX; |
43 | | UINT16 lastY; |
44 | | } rdp_input_internal; |
45 | | |
46 | | static INLINE rdp_input_internal* input_cast(rdpInput* input) |
47 | 0 | { |
48 | 0 | union |
49 | 0 | { |
50 | 0 | rdpInput* pub; |
51 | 0 | rdp_input_internal* internal; |
52 | 0 | } cnv; |
53 | |
|
54 | 0 | WINPR_ASSERT(input); |
55 | 0 | cnv.pub = input; |
56 | 0 | return cnv.internal; |
57 | 0 | } Unexecuted instantiation: settings.c:input_cast Unexecuted instantiation: capabilities.c:input_cast Unexecuted instantiation: rdp.c:input_cast Unexecuted instantiation: fastpath.c:input_cast Unexecuted instantiation: surface.c:input_cast Unexecuted instantiation: transport.c:input_cast Unexecuted instantiation: update.c:input_cast Unexecuted instantiation: message.c:input_cast Unexecuted instantiation: channels.c:input_cast Unexecuted instantiation: aad.c:input_cast Unexecuted instantiation: timer.c:input_cast Unexecuted instantiation: rdg.c:input_cast Unexecuted instantiation: rpc_client.c:input_cast Unexecuted instantiation: wst.c:input_cast Unexecuted instantiation: utils.c:input_cast Unexecuted instantiation: activation.c:input_cast Unexecuted instantiation: mcs.c:input_cast Unexecuted instantiation: nla.c:input_cast Unexecuted instantiation: info.c:input_cast Unexecuted instantiation: input.c:input_cast Unexecuted instantiation: license.c:input_cast Unexecuted instantiation: security.c:input_cast Unexecuted instantiation: orders.c:input_cast Unexecuted instantiation: freerdp.c:input_cast Unexecuted instantiation: client.c:input_cast Unexecuted instantiation: server.c:input_cast Unexecuted instantiation: codecs.c:input_cast Unexecuted instantiation: metrics.c:input_cast Unexecuted instantiation: connection.c:input_cast Unexecuted instantiation: redirection.c:input_cast Unexecuted instantiation: autodetect.c:input_cast Unexecuted instantiation: heartbeat.c:input_cast Unexecuted instantiation: multitransport.c:input_cast Unexecuted instantiation: timezone.c:input_cast Unexecuted instantiation: tcp.c:input_cast Unexecuted instantiation: window.c:input_cast Unexecuted instantiation: peer.c:input_cast Unexecuted instantiation: display.c:input_cast Unexecuted instantiation: arm.c:input_cast Unexecuted instantiation: gdi.c:input_cast Unexecuted instantiation: TestFuzzCoreServer.c:input_cast Unexecuted instantiation: TestFuzzCoreClient.c:input_cast Unexecuted instantiation: gfx.c:input_cast Unexecuted instantiation: video.c:input_cast |
58 | | FREERDP_LOCAL BOOL input_recv(rdpInput* input, wStream* s); |
59 | | |
60 | | FREERDP_LOCAL int input_process_events(rdpInput* input); |
61 | | FREERDP_LOCAL BOOL input_register_client_callbacks(rdpInput* input); |
62 | | |
63 | | FREERDP_LOCAL void input_free(rdpInput* input); |
64 | | |
65 | | WINPR_ATTR_MALLOC(input_free, 1) |
66 | | FREERDP_LOCAL rdpInput* input_new(rdpRdp* rdp); |
67 | | |
68 | | #endif /* FREERDP_LIB_CORE_INPUT_H */ |