|
Packit |
1fb8d4 |
/**
|
|
Packit |
1fb8d4 |
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit |
1fb8d4 |
* Extended Input channel server-side definitions
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Copyright 2014 Thincast Technologies Gmbh.
|
|
Packit |
1fb8d4 |
* Copyright 2014 David FORT <contact@hardening-consulting.com>
|
|
Packit |
1fb8d4 |
* Copyright 2015 Thincast Technologies GmbH
|
|
Packit |
1fb8d4 |
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1fb8d4 |
* you may not use this file except in compliance with the License.
|
|
Packit |
1fb8d4 |
* You may obtain a copy of the License at
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1fb8d4 |
*
|
|
Packit |
1fb8d4 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1fb8d4 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1fb8d4 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1fb8d4 |
* See the License for the specific language governing permissions and
|
|
Packit |
1fb8d4 |
* limitations under the License.
|
|
Packit |
1fb8d4 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifndef FREERDP_CHANNEL_RDPEI_SERVER_H
|
|
Packit |
1fb8d4 |
#define FREERDP_CHANNEL_RDPEI_SERVER_H
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#include <freerdp/channels/wtsvc.h>
|
|
Packit |
1fb8d4 |
#include <freerdp/channels/rdpei.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
typedef struct _rdpei_server_context RdpeiServerContext;
|
|
Packit |
1fb8d4 |
typedef struct _rdpei_server_private RdpeiServerPrivate;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
struct _rdpei_server_context
|
|
Packit |
1fb8d4 |
{
|
|
Packit |
1fb8d4 |
HANDLE vcm;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
RdpeiServerPrivate* priv;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
UINT32 clientVersion;
|
|
Packit |
1fb8d4 |
UINT16 maxTouchPoints;
|
|
Packit |
1fb8d4 |
UINT32 protocolFlags;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
/** callbacks that can be set by the user */
|
|
Packit Service |
5a9772 |
UINT (*onClientReady)(RdpeiServerContext* context);
|
|
Packit Service |
5a9772 |
UINT (*onTouchEvent)(RdpeiServerContext* context, RDPINPUT_TOUCH_EVENT* touchEvent);
|
|
Packit Service |
5a9772 |
UINT (*onTouchReleased)(RdpeiServerContext* context, BYTE contactId);
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
void* user_data; /* user data, useful for callbacks */
|
|
Packit |
1fb8d4 |
};
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifdef __cplusplus
|
|
Packit Service |
5a9772 |
extern "C"
|
|
Packit Service |
5a9772 |
{
|
|
Packit |
1fb8d4 |
#endif
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
FREERDP_API RdpeiServerContext* rdpei_server_context_new(HANDLE vcm);
|
|
Packit Service |
5a9772 |
FREERDP_API void rdpei_server_context_reset(RdpeiServerContext* context);
|
|
Packit Service |
5a9772 |
FREERDP_API void rdpei_server_context_free(RdpeiServerContext* context);
|
|
Packit Service |
5a9772 |
FREERDP_API HANDLE rdpei_server_get_event_handle(RdpeiServerContext* context);
|
|
Packit Service |
5a9772 |
FREERDP_API UINT rdpei_server_init(RdpeiServerContext* context);
|
|
Packit Service |
5a9772 |
FREERDP_API UINT rdpei_server_handle_messages(RdpeiServerContext* context);
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
FREERDP_API UINT rdpei_server_send_sc_ready(RdpeiServerContext* context, UINT32 version);
|
|
Packit Service |
5a9772 |
FREERDP_API UINT rdpei_server_suspend(RdpeiServerContext* context);
|
|
Packit Service |
5a9772 |
FREERDP_API UINT rdpei_server_resume(RdpeiServerContext* context);
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#ifdef __cplusplus
|
|
Packit |
1fb8d4 |
}
|
|
Packit |
1fb8d4 |
#endif
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#endif /* FREERDP_CHANNEL_RDPEI_SERVER_H */
|