FreeRDP
|
#include <winpr/cmdline.h>
#include <freerdp/config.h>
#include <freerdp/api.h>
#include <freerdp/types.h>
#include <freerdp/event.h>
#include <freerdp/freerdp.h>
Data Structures | |
struct | RDP_CLIENT_ENTRY_POINTS_V1 |
struct | FreeRDP_TouchContact |
struct | FreeRDP_PenDevice |
struct | rdpClientContext |
Macros | |
#define | RDP_CLIENT_INTERFACE_VERSION 1 |
#define | RDP_CLIENT_ENTRY_POINT_NAME "RdpClientEntry" |
#define | FREERDP_MAX_TOUCH_CONTACTS 10 |
#define | FREERDP_MAX_PEN_DEVICES 10 |
Typedefs | |
typedef BOOL(* | pRdpGlobalInit) (void) |
typedef void(* | pRdpGlobalUninit) (void) |
typedef BOOL(* | pRdpClientNew) (freerdp *instance, rdpContext *context) |
typedef void(* | pRdpClientFree) (freerdp *instance, rdpContext *context) |
typedef int(* | pRdpClientStart) (rdpContext *context) |
typedef int(* | pRdpClientStop) (rdpContext *context) |
typedef int(* | pRdpClientEntry) (RDP_CLIENT_ENTRY_POINTS *pEntryPoints) |
Enumerations | |
enum | FreeRDPTouchEventType { FREERDP_TOUCH_DOWN = 0x01 , FREERDP_TOUCH_UP = 0x02 , FREERDP_TOUCH_MOTION = 0x04 , FREERDP_TOUCH_HAS_PRESSURE = 0x100 } |
enum | FreeRDPPenEventType { FREERDP_PEN_REGISTER = 0x01 , FREERDP_PEN_ERASER_PRESSED = 0x02 , FREERDP_PEN_PRESS = 0x04 , FREERDP_PEN_MOTION = 0x08 , FREERDP_PEN_RELEASE = 0x10 , FREERDP_PEN_BARREL_PRESSED = 0x20 , FREERDP_PEN_HAS_PRESSURE = 0x40 , FREERDP_PEN_HAS_ROTATION = 0x80 , FREERDP_PEN_HAS_TILTX = 0x100 , FREERDP_PEN_HAS_TILTY = 0x200 , FREERDP_PEN_IS_INVERTED = 0x400 } |
Functions | |
FREERDP_API void | freerdp_client_context_free (rdpContext *context) |
FREERDP_API rdpContext * | freerdp_client_context_new (const RDP_CLIENT_ENTRY_POINTS *pEntryPoints) |
FREERDP_API int | freerdp_client_start (rdpContext *context) |
FREERDP_API int | freerdp_client_stop (rdpContext *context) |
FREERDP_API freerdp * | freerdp_client_get_instance (rdpContext *context) |
FREERDP_API HANDLE | freerdp_client_get_thread (rdpContext *context) |
FREERDP_API int | freerdp_client_settings_parse_command_line (rdpSettings *settings, int argc, char **argv, BOOL allowUnknown) |
FREERDP_API int | freerdp_client_settings_parse_command_line_ex (rdpSettings *settings, int argc, char **argv, BOOL allowUnknown, COMMAND_LINE_ARGUMENT_A *args, size_t count, int(*handle_option)(const COMMAND_LINE_ARGUMENT *arg, void *custom), void *handle_userdata) |
FREERDP_API int | freerdp_client_settings_parse_connection_file (rdpSettings *settings, const char *filename) |
FREERDP_API int | freerdp_client_settings_parse_connection_file_buffer (rdpSettings *settings, const BYTE *buffer, size_t size) |
FREERDP_API int | freerdp_client_settings_write_connection_file (const rdpSettings *settings, const char *filename, BOOL unicode) |
FREERDP_API int | freerdp_client_settings_parse_assistance_file (rdpSettings *settings, int argc, char *argv[]) |
FREERDP_API BOOL | client_cli_authenticate_ex (freerdp *instance, char **username, char **password, char **domain, rdp_auth_reason reason) |
FREERDP_API BOOL | client_cli_choose_smartcard (freerdp *instance, SmartcardCertInfo **cert_list, DWORD count, DWORD *choice, BOOL gateway) |
FREERDP_API int | client_cli_logon_error_info (freerdp *instance, UINT32 data, UINT32 type) |
FREERDP_API BOOL | client_cli_get_access_token (freerdp *instance, AccessTokenType tokenType, char **token, size_t count,...) |
FREERDP_API BOOL | client_common_get_access_token (freerdp *instance, const char *request, char **token) |
FREERDP_API SSIZE_T | client_common_retry_dialog (freerdp *instance, const char *what, size_t current, void *userarg) |
FREERDP_API void | freerdp_client_OnChannelConnectedEventHandler (void *context, const ChannelConnectedEventArgs *e) |
FREERDP_API void | freerdp_client_OnChannelDisconnectedEventHandler (void *context, const ChannelDisconnectedEventArgs *e) |
FREERDP_API DWORD | client_cli_verify_certificate_ex (freerdp *instance, const char *host, UINT16 port, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, DWORD flags) |
FREERDP_API DWORD | client_cli_verify_changed_certificate_ex (freerdp *instance, const char *host, UINT16 port, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, const char *old_subject, const char *old_issuer, const char *old_fingerprint, DWORD flags) |
FREERDP_API BOOL | client_cli_present_gateway_message (freerdp *instance, UINT32 type, BOOL isDisplayMandatory, BOOL isConsentMandatory, size_t length, const WCHAR *message) |
FREERDP_API BOOL | client_auto_reconnect (freerdp *instance) |
FREERDP_API BOOL | client_auto_reconnect_ex (freerdp *instance, BOOL(*window_events)(freerdp *instance)) |
FREERDP_API BOOL | freerdp_client_handle_touch (rdpClientContext *cctx, UINT32 flags, INT32 finger, UINT32 pressure, INT32 x, INT32 y) |
FREERDP_API BOOL | freerdp_client_handle_pen (rdpClientContext *cctx, UINT32 flags, INT32 deviceid,...) |
FREERDP_API BOOL | freerdp_client_is_pen (rdpClientContext *cctx, INT32 deviceid) |
FREERDP_API BOOL | freerdp_client_pen_cancel_all (rdpClientContext *cctx) |
FREERDP_API BOOL | freerdp_client_send_wheel_event (rdpClientContext *cctx, UINT16 mflags) |
FREERDP_API BOOL | freerdp_client_send_mouse_event (rdpClientContext *cctx, UINT64 mflags, INT32 x, INT32 y) |
FREERDP_API BOOL | freerdp_client_use_relative_mouse_events (rdpClientContext *cctx) |
this function checks if relative mouse events are supported and enabled for this session. More... | |
FREERDP_API BOOL | freerdp_client_send_button_event (rdpClientContext *cctx, BOOL relative, UINT16 mflags, INT32 x, INT32 y) |
FREERDP_API BOOL | freerdp_client_send_extended_button_event (rdpClientContext *cctx, BOOL relative, UINT16 mflags, INT32 x, INT32 y) |
FREERDP_API int | freerdp_client_common_stop (rdpContext *context) |
FREERDP_API BOOL | freerdp_client_load_channels (freerdp *instance) |
#define FREERDP_MAX_PEN_DEVICES 10 |
#define FREERDP_MAX_TOUCH_CONTACTS 10 |
#define RDP_CLIENT_ENTRY_POINT_NAME "RdpClientEntry" |
#define RDP_CLIENT_INTERFACE_VERSION 1 |
typedef int(* pRdpClientEntry) (RDP_CLIENT_ENTRY_POINTS *pEntryPoints) |
typedef int(* pRdpClientStart) (rdpContext *context) |
typedef int(* pRdpClientStop) (rdpContext *context) |
typedef BOOL(* pRdpGlobalInit) (void) |
FreeRDP: A Remote Desktop Protocol Implementation Client Interface
Copyright 2013 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Client Entry Points
typedef void(* pRdpGlobalUninit) (void) |
enum FreeRDPPenEventType |
FREERDP_API BOOL client_auto_reconnect | ( | freerdp * | instance | ) |
FREERDP_API BOOL client_auto_reconnect_ex | ( | freerdp * | instance, |
BOOL(*)(freerdp *instance) | window_events | ||
) |
FREERDP_API BOOL client_cli_authenticate_ex | ( | freerdp * | instance, |
char ** | username, | ||
char ** | password, | ||
char ** | domain, | ||
rdp_auth_reason | reason | ||
) |
FREERDP_API BOOL client_cli_choose_smartcard | ( | freerdp * | instance, |
SmartcardCertInfo ** | cert_list, | ||
DWORD | count, | ||
DWORD * | choice, | ||
BOOL | gateway | ||
) |
FREERDP_API BOOL client_cli_get_access_token | ( | freerdp * | instance, |
AccessTokenType | tokenType, | ||
char ** | token, | ||
size_t | count, | ||
... | |||
) |
FREERDP_API int client_cli_logon_error_info | ( | freerdp * | instance, |
UINT32 | data, | ||
UINT32 | type | ||
) |
FREERDP_API BOOL client_cli_present_gateway_message | ( | freerdp * | instance, |
UINT32 | type, | ||
BOOL | isDisplayMandatory, | ||
BOOL | isConsentMandatory, | ||
size_t | length, | ||
const WCHAR * | message | ||
) |
FREERDP_API DWORD client_cli_verify_certificate_ex | ( | freerdp * | instance, |
const char * | host, | ||
UINT16 | port, | ||
const char * | common_name, | ||
const char * | subject, | ||
const char * | issuer, | ||
const char * | fingerprint, | ||
DWORD | flags | ||
) |
Callback set in the rdp_freerdp structure, and used to make a certificate validation when the connection requires it. This function will actually be called by tls_verify_certificate().
instance | pointer to the rdp_freerdp structure that contains the connection settings |
host | The host currently connecting to |
port | The port currently connecting to |
common_name | The common name of the certificate, should match host or an alias of it |
subject | The subject of the certificate |
issuer | The certificate issuer name |
fingerprint | The fingerprint of the certificate |
flags | See VERIFY_CERT_FLAG_* for possible values. |
FREERDP_API DWORD client_cli_verify_changed_certificate_ex | ( | freerdp * | instance, |
const char * | host, | ||
UINT16 | port, | ||
const char * | common_name, | ||
const char * | subject, | ||
const char * | issuer, | ||
const char * | fingerprint, | ||
const char * | old_subject, | ||
const char * | old_issuer, | ||
const char * | old_fingerprint, | ||
DWORD | flags | ||
) |
Callback set in the rdp_freerdp structure, and used to make a certificate validation when a stored certificate does not match the remote counterpart. This function will actually be called by tls_verify_certificate().
instance | - pointer to the rdp_freerdp structure that contains the connection settings |
common_name | |
subject | |
issuer | |
fingerprint | |
old_subject | |
old_issuer | |
old_fingerprint |
instance | pointer to the rdp_freerdp structure that contains the connection settings |
host | The host currently connecting to |
port | The port currently connecting to |
common_name | The common name of the certificate, should match host or an alias of it |
subject | The subject of the certificate |
issuer | The certificate issuer name |
fingerprint | The fingerprint of the certificate |
old_subject | The subject of the previous certificate |
old_issuer | The previous certificate issuer name |
old_fingerprint | The fingerprint of the previous certificate |
flags | See VERIFY_CERT_FLAG_* for possible values. |
FREERDP_API BOOL client_common_get_access_token | ( | freerdp * | instance, |
const char * | request, | ||
char ** | token | ||
) |
FREERDP_API SSIZE_T client_common_retry_dialog | ( | freerdp * | instance, |
const char * | what, | ||
size_t | current, | ||
void * | userarg | ||
) |
FREERDP_API int freerdp_client_common_stop | ( | rdpContext * | context | ) |
FREERDP_API void freerdp_client_context_free | ( | rdpContext * | context | ) |
FREERDP_API rdpContext* freerdp_client_context_new | ( | const RDP_CLIENT_ENTRY_POINTS * | pEntryPoints | ) |
FREERDP_API freerdp* freerdp_client_get_instance | ( | rdpContext * | context | ) |
FREERDP_API HANDLE freerdp_client_get_thread | ( | rdpContext * | context | ) |
FREERDP_API BOOL freerdp_client_handle_pen | ( | rdpClientContext * | cctx, |
UINT32 | flags, | ||
INT32 | deviceid, | ||
... | |||
) |
FREERDP_API BOOL freerdp_client_handle_touch | ( | rdpClientContext * | cctx, |
UINT32 | flags, | ||
INT32 | finger, | ||
UINT32 | pressure, | ||
INT32 | x, | ||
INT32 | y | ||
) |
FREERDP_API BOOL freerdp_client_is_pen | ( | rdpClientContext * | cctx, |
INT32 | deviceid | ||
) |
FREERDP_API BOOL freerdp_client_load_channels | ( | freerdp * | instance | ) |
FREERDP_API void freerdp_client_OnChannelConnectedEventHandler | ( | void * | context, |
const ChannelConnectedEventArgs * | e | ||
) |
FREERDP_API void freerdp_client_OnChannelDisconnectedEventHandler | ( | void * | context, |
const ChannelDisconnectedEventArgs * | e | ||
) |
FREERDP_API BOOL freerdp_client_pen_cancel_all | ( | rdpClientContext * | cctx | ) |
FREERDP_API BOOL freerdp_client_send_button_event | ( | rdpClientContext * | cctx, |
BOOL | relative, | ||
UINT16 | mflags, | ||
INT32 | x, | ||
INT32 | y | ||
) |
FREERDP_API BOOL freerdp_client_send_extended_button_event | ( | rdpClientContext * | cctx, |
BOOL | relative, | ||
UINT16 | mflags, | ||
INT32 | x, | ||
INT32 | y | ||
) |
FREERDP_API BOOL freerdp_client_send_mouse_event | ( | rdpClientContext * | cctx, |
UINT64 | mflags, | ||
INT32 | x, | ||
INT32 | y | ||
) |
FREERDP_API BOOL freerdp_client_send_wheel_event | ( | rdpClientContext * | cctx, |
UINT16 | mflags | ||
) |
FREERDP_API int freerdp_client_settings_parse_assistance_file | ( | rdpSettings * | settings, |
int | argc, | ||
char * | argv[] | ||
) |
FREERDP_API int freerdp_client_settings_parse_command_line | ( | rdpSettings * | settings, |
int | argc, | ||
char ** | argv, | ||
BOOL | allowUnknown | ||
) |
FREERDP_API int freerdp_client_settings_parse_command_line_ex | ( | rdpSettings * | settings, |
int | argc, | ||
char ** | argv, | ||
BOOL | allowUnknown, | ||
COMMAND_LINE_ARGUMENT_A * | args, | ||
size_t | count, | ||
int(*)(const COMMAND_LINE_ARGUMENT *arg, void *custom) | handle_option, | ||
void * | handle_userdata | ||
) |
FREERDP_API int freerdp_client_settings_parse_connection_file | ( | rdpSettings * | settings, |
const char * | filename | ||
) |
FREERDP_API int freerdp_client_settings_parse_connection_file_buffer | ( | rdpSettings * | settings, |
const BYTE * | buffer, | ||
size_t | size | ||
) |
FREERDP_API int freerdp_client_settings_write_connection_file | ( | const rdpSettings * | settings, |
const char * | filename, | ||
BOOL | unicode | ||
) |
FREERDP_API int freerdp_client_start | ( | rdpContext * | context | ) |
FREERDP_API int freerdp_client_stop | ( | rdpContext * | context | ) |
FREERDP_API BOOL freerdp_client_use_relative_mouse_events | ( | rdpClientContext * | cctx | ) |
this function checks if relative mouse events are supported and enabled for this session.
cctx | The rdpClientContext to check |