/src/FreeRDP/libfreerdp/core/input.h
Line  | Count  | Source  | 
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  | 13.2k  | { | 
48  | 13.2k  |   union  | 
49  | 13.2k  |   { | 
50  | 13.2k  |     rdpInput* pub;  | 
51  | 13.2k  |     rdp_input_internal* internal;  | 
52  | 13.2k  |   } cnv;  | 
53  |  |  | 
54  | 13.2k  |   WINPR_ASSERT(input);  | 
55  | 13.2k  |   cnv.pub = input;  | 
56  | 13.2k  |   return cnv.internal;  | 
57  | 13.2k  | } Unexecuted instantiation: TestFuzzCoreClient.c:input_cast Unexecuted instantiation: settings.c:input_cast Unexecuted instantiation: gfx.c:input_cast Unexecuted instantiation: video.c:input_cast Unexecuted instantiation: activation.c:input_cast Unexecuted instantiation: nla.c:input_cast Unexecuted instantiation: info.c:input_cast Line  | Count  | Source  |  47  | 13.2k  | { |  48  | 13.2k  |   union  |  49  | 13.2k  |   { |  50  | 13.2k  |     rdpInput* pub;  |  51  | 13.2k  |     rdp_input_internal* internal;  |  52  | 13.2k  |   } cnv;  |  53  |  |  |  54  | 13.2k  |   WINPR_ASSERT(input);  |  55  | 13.2k  |   cnv.pub = input;  |  56  | 13.2k  |   return cnv.internal;  |  57  | 13.2k  | }  |  
 Unexecuted instantiation: orders.c:input_cast Unexecuted instantiation: freerdp.c:input_cast Unexecuted instantiation: client.c:input_cast Unexecuted instantiation: codecs.c:input_cast Unexecuted instantiation: metrics.c:input_cast Unexecuted instantiation: capabilities.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: rdp.c:input_cast Unexecuted instantiation: tcp.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: window.c:input_cast Unexecuted instantiation: peer.c:input_cast Unexecuted instantiation: display.c:input_cast Unexecuted instantiation: rdg.c:input_cast Unexecuted instantiation: rpc_client.c:input_cast Unexecuted instantiation: wst.c:input_cast Unexecuted instantiation: arm.c:input_cast Unexecuted instantiation: gdi.c:input_cast Unexecuted instantiation: utils.c:input_cast Unexecuted instantiation: mcs.c:input_cast Unexecuted instantiation: license.c:input_cast Unexecuted instantiation: security.c:input_cast Unexecuted instantiation: server.c:input_cast Unexecuted instantiation: TestFuzzCoreServer.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 */  |