2011-07-01 05:23:36 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-01 05:23:36 +04:00
|
|
|
* FreeRDP Interface
|
|
|
|
*
|
|
|
|
* Copyright 2009-2011 Jay Sorg
|
2015-07-15 10:50:35 +03:00
|
|
|
* Copyright 2015 Thincast Technologies GmbH
|
|
|
|
* Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
|
2011-07-01 05:23:36 +04:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#ifndef FREERDP_H
|
|
|
|
#define FREERDP_H
|
2011-07-01 05:23:36 +04:00
|
|
|
|
2011-10-16 08:50:10 +04:00
|
|
|
typedef struct rdp_rdp rdpRdp;
|
|
|
|
typedef struct rdp_gdi rdpGdi;
|
|
|
|
typedef struct rdp_rail rdpRail;
|
|
|
|
typedef struct rdp_cache rdpCache;
|
2011-10-17 04:10:09 +04:00
|
|
|
typedef struct rdp_channels rdpChannels;
|
2011-10-21 01:28:59 +04:00
|
|
|
typedef struct rdp_graphics rdpGraphics;
|
2014-05-26 20:30:58 +04:00
|
|
|
typedef struct rdp_metrics rdpMetrics;
|
2014-09-10 08:42:41 +04:00
|
|
|
typedef struct rdp_codecs rdpCodecs;
|
2011-10-17 04:10:09 +04:00
|
|
|
|
2011-08-16 01:19:59 +04:00
|
|
|
typedef struct rdp_freerdp freerdp;
|
2011-10-16 08:50:10 +04:00
|
|
|
typedef struct rdp_context rdpContext;
|
2011-10-18 11:10:12 +04:00
|
|
|
typedef struct rdp_freerdp_peer freerdp_peer;
|
2013-06-16 01:01:10 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
typedef struct rdp_client_context rdpClientContext;
|
2013-06-16 01:01:10 +04:00
|
|
|
typedef struct rdp_client_entry_points_v1 RDP_CLIENT_ENTRY_POINTS_V1;
|
|
|
|
typedef RDP_CLIENT_ENTRY_POINTS_V1 RDP_CLIENT_ENTRY_POINTS;
|
2011-08-16 01:19:59 +04:00
|
|
|
|
2011-07-07 07:08:37 +04:00
|
|
|
#include <freerdp/api.h>
|
2011-07-07 21:37:48 +04:00
|
|
|
#include <freerdp/types.h>
|
2012-12-14 09:25:48 +04:00
|
|
|
#include <freerdp/error.h>
|
2013-06-16 01:39:45 +04:00
|
|
|
#include <freerdp/event.h>
|
2014-09-10 08:42:41 +04:00
|
|
|
#include <freerdp/codecs.h>
|
2014-05-26 20:30:58 +04:00
|
|
|
#include <freerdp/metrics.h>
|
2011-07-07 07:22:14 +04:00
|
|
|
#include <freerdp/settings.h>
|
|
|
|
#include <freerdp/extension.h>
|
2013-03-22 00:45:25 +04:00
|
|
|
|
|
|
|
#include <winpr/stream.h>
|
2011-07-01 05:23:36 +04:00
|
|
|
|
2011-07-28 08:38:25 +04:00
|
|
|
#include <freerdp/input.h>
|
|
|
|
#include <freerdp/update.h>
|
2013-02-05 00:47:13 +04:00
|
|
|
#include <freerdp/message.h>
|
2014-10-28 18:29:40 +03:00
|
|
|
#include <freerdp/autodetect.h>
|
2011-07-28 08:38:25 +04:00
|
|
|
|
2011-07-01 05:23:36 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2015-04-28 18:00:41 +03:00
|
|
|
typedef BOOL (*pContextNew)(freerdp* instance, rdpContext* context);
|
2011-10-21 07:15:18 +04:00
|
|
|
typedef void (*pContextFree)(freerdp* instance, rdpContext* context);
|
2011-07-28 08:38:25 +04:00
|
|
|
|
2012-10-09 10:38:39 +04:00
|
|
|
typedef BOOL (*pPreConnect)(freerdp* instance);
|
|
|
|
typedef BOOL (*pPostConnect)(freerdp* instance);
|
2013-08-19 19:44:52 +04:00
|
|
|
typedef void (*pPostDisconnect)(freerdp* instance);
|
2015-12-14 16:02:49 +03:00
|
|
|
typedef BOOL (*pAuthenticate)(freerdp* instance, char** username,
|
2016-08-09 13:04:06 +03:00
|
|
|
char** password, char** domain);
|
2015-12-14 16:02:49 +03:00
|
|
|
|
|
|
|
/** @brief Callback used if user interaction is required to accept
|
|
|
|
* an unknown certificate.
|
|
|
|
*
|
|
|
|
* @param common_name The certificate registered hostname.
|
|
|
|
* @param subject The common name of the certificate.
|
|
|
|
* @param issuer The issuer of the certificate.
|
|
|
|
* @param fingerprint The fingerprint of the certificate.
|
|
|
|
* @param host_mismatch A flag indicating the certificate
|
|
|
|
* subject does not match the host connecting to.
|
|
|
|
*
|
|
|
|
* @return 1 to accept and store a certificate, 2 to accept
|
|
|
|
* a certificate only for this session, 0 otherwise.
|
|
|
|
*/
|
|
|
|
typedef DWORD (*pVerifyCertificate)(freerdp* instance,
|
2016-08-09 13:04:06 +03:00
|
|
|
const char* common_name,
|
|
|
|
const char* subject,
|
|
|
|
const char* issuer,
|
|
|
|
const char* fingerprint,
|
|
|
|
BOOL host_mismatch);
|
2015-12-14 16:02:49 +03:00
|
|
|
|
|
|
|
/** @brief Callback used if user interaction is required to accept
|
|
|
|
* a changed certificate.
|
|
|
|
*
|
|
|
|
* @param common_name The certificate registered hostname.
|
|
|
|
* @param subject The common name of the new certificate.
|
|
|
|
* @param issuer The issuer of the new certificate.
|
|
|
|
* @param fingerprint The fingerprint of the new certificate.
|
|
|
|
* @param old_subject The common name of the old certificate.
|
|
|
|
* @param old_issuer The issuer of the new certificate.
|
|
|
|
* @param old_fingerprint The fingerprint of the old certificate.
|
|
|
|
*
|
|
|
|
* @return 1 to accept and store a certificate, 2 to accept
|
|
|
|
* a certificate only for this session, 0 otherwise.
|
|
|
|
*/
|
|
|
|
|
|
|
|
typedef DWORD (*pVerifyChangedCertificate)(freerdp* instance,
|
2016-08-09 13:04:06 +03:00
|
|
|
const char* common_name,
|
|
|
|
const char* subject,
|
|
|
|
const char* issuer,
|
|
|
|
const char* new_fingerprint,
|
|
|
|
const char* old_subject,
|
|
|
|
const char* old_issuer,
|
|
|
|
const char* old_fingerprint);
|
2015-12-14 16:02:49 +03:00
|
|
|
typedef int (*pVerifyX509Certificate)(freerdp* instance, BYTE* data,
|
2016-08-09 13:04:06 +03:00
|
|
|
int length, const char* hostname,
|
|
|
|
int port, DWORD flags);
|
2011-10-17 05:02:28 +04:00
|
|
|
|
2013-03-29 06:26:28 +04:00
|
|
|
typedef int (*pLogonErrorInfo)(freerdp* instance, UINT32 data, UINT32 type);
|
|
|
|
|
2016-08-09 13:04:06 +03:00
|
|
|
typedef int (*pSendChannelData)(freerdp* instance, UINT16 channelId, BYTE* data,
|
|
|
|
int size);
|
|
|
|
typedef int (*pReceiveChannelData)(freerdp* instance, UINT16 channelId,
|
|
|
|
BYTE* data, int size, int flags, int totalSize);
|
2011-10-16 08:50:10 +04:00
|
|
|
|
2012-03-02 01:06:03 +04:00
|
|
|
/**
|
|
|
|
* Defines the context for a given instance of RDP connection.
|
|
|
|
* It is embedded in the rdp_freerdp structure, and allocated by a call to freerdp_context_new().
|
|
|
|
* It is deallocated by a call to freerdp_context_free().
|
|
|
|
*/
|
2011-10-16 08:50:10 +04:00
|
|
|
struct rdp_context
|
|
|
|
{
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 freerdp* instance; /**< (offset 0)
|
2012-03-02 01:06:03 +04:00
|
|
|
Pointer to a rdp_freerdp structure.
|
|
|
|
This is a back-link to retrieve the freerdp instance from the context.
|
|
|
|
It is set by the freerdp_context_new() function */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 freerdp_peer* peer; /**< (offset 1)
|
2012-03-02 01:06:03 +04:00
|
|
|
Pointer to the client peer.
|
|
|
|
This is set by a call to freerdp_peer_context_new() during peer initialization.
|
|
|
|
This field is used only on the server side. */
|
2013-10-13 02:20:25 +04:00
|
|
|
ALIGN64 BOOL ServerMode; /**< (offset 2) true when context is in server mode */
|
|
|
|
|
2014-03-21 02:19:54 +04:00
|
|
|
ALIGN64 UINT32 LastError; /* 3 */
|
|
|
|
|
|
|
|
UINT64 paddingA[16 - 4]; /* 4 */
|
2011-11-20 23:25:59 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 int argc; /**< (offset 16)
|
2012-03-02 01:06:03 +04:00
|
|
|
Number of arguments given to the program at launch time.
|
|
|
|
Used to keep this data available and used later on, typically just before connection initialization.
|
|
|
|
@see freerdp_parse_args() */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 char** argv; /**< (offset 17)
|
2012-03-02 01:06:03 +04:00
|
|
|
List of arguments given to the program at launch time.
|
|
|
|
Used to keep this data available and used later on, typically just before connection initialization.
|
|
|
|
@see freerdp_parse_args() */
|
2013-01-25 04:08:30 +04:00
|
|
|
|
2013-06-16 01:39:45 +04:00
|
|
|
ALIGN64 wPubSub* pubSub; /* (offset 18) */
|
|
|
|
|
2015-07-15 10:50:35 +03:00
|
|
|
ALIGN64 HANDLE channelErrorEvent; /* (offset 19)*/
|
2015-08-27 15:25:09 +03:00
|
|
|
ALIGN64 UINT channelErrorNum; /*(offset 20)*/
|
2015-07-15 10:50:35 +03:00
|
|
|
ALIGN64 char* errorDescription; /*(offset 21)*/
|
|
|
|
|
|
|
|
UINT64 paddingB[32 - 22]; /* 22 */
|
2011-11-20 23:25:59 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpRdp* rdp; /**< (offset 32)
|
2012-03-02 01:06:03 +04:00
|
|
|
Pointer to a rdp_rdp structure used to keep the connection's parameters.
|
|
|
|
It is allocated by freerdp_context_new() and deallocated by freerdp_context_free(), at the same
|
|
|
|
time that this rdp_context structure - there is no need to specifically allocate/deallocate this. */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpGdi* gdi; /**< (offset 33)
|
2012-03-02 01:06:03 +04:00
|
|
|
Pointer to a rdp_gdi structure used to keep the gdi settings.
|
|
|
|
It is allocated by gdi_init() and deallocated by gdi_free().
|
|
|
|
It must be deallocated before deallocating this rdp_context structure. */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpRail* rail; /* 34 */
|
|
|
|
ALIGN64 rdpCache* cache; /* 35 */
|
|
|
|
ALIGN64 rdpChannels* channels; /* 36 */
|
|
|
|
ALIGN64 rdpGraphics* graphics; /* 37 */
|
|
|
|
ALIGN64 rdpInput* input; /* 38 */
|
|
|
|
ALIGN64 rdpUpdate* update; /* 39 */
|
|
|
|
ALIGN64 rdpSettings* settings; /* 40 */
|
2014-05-26 20:30:58 +04:00
|
|
|
ALIGN64 rdpMetrics* metrics; /* 41 */
|
2014-09-10 08:42:41 +04:00
|
|
|
ALIGN64 rdpCodecs* codecs; /* 42 */
|
2014-10-28 18:29:40 +03:00
|
|
|
ALIGN64 rdpAutoDetect* autodetect; /* 43 */
|
2015-07-03 12:49:40 +03:00
|
|
|
ALIGN64 HANDLE abortEvent; /* 44 */
|
|
|
|
UINT64 paddingC[64 - 45]; /* 45 */
|
2013-06-14 23:07:17 +04:00
|
|
|
|
|
|
|
UINT64 paddingD[96 - 64]; /* 64 */
|
|
|
|
UINT64 paddingE[128 - 96]; /* 96 */
|
2011-10-16 08:50:10 +04:00
|
|
|
};
|
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
#include <freerdp/client.h>
|
|
|
|
|
2012-02-23 19:22:05 +04:00
|
|
|
/** Defines the options for a given instance of RDP connection.
|
|
|
|
* This is built by the client and given to the FreeRDP library to create the connection
|
|
|
|
* with the expected options.
|
2012-03-02 01:06:03 +04:00
|
|
|
* It is allocated by a call to freerdp_new() and deallocated by a call to freerdp_free().
|
|
|
|
* Some of its content need specific allocation/deallocation - see field description for details.
|
2012-02-23 19:22:05 +04:00
|
|
|
*/
|
2011-07-28 09:04:01 +04:00
|
|
|
struct rdp_freerdp
|
2011-07-28 08:38:25 +04:00
|
|
|
{
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpContext* context; /**< (offset 0)
|
2012-02-23 19:22:05 +04:00
|
|
|
Pointer to a rdpContext structure.
|
2013-06-14 05:34:46 +04:00
|
|
|
Client applications can use the ContextSize field to register a context bigger than the rdpContext
|
2012-02-28 17:26:03 +04:00
|
|
|
structure. This allow clients to use additional context information.
|
|
|
|
When using this capability, client application should ALWAYS declare their structure with the
|
|
|
|
rdpContext field first, and any additional content following it.
|
2012-03-02 01:06:03 +04:00
|
|
|
Can be allocated by a call to freerdp_context_new().
|
2013-01-26 02:52:37 +04:00
|
|
|
Must be deallocated by a call to freerdp_context_free() before deallocating the current instance. */
|
|
|
|
|
2013-06-16 01:39:45 +04:00
|
|
|
ALIGN64 RDP_CLIENT_ENTRY_POINTS* pClientEntryPoints;
|
2013-06-16 01:01:10 +04:00
|
|
|
|
|
|
|
UINT64 paddingA[16 - 2]; /* 2 */
|
2011-11-20 23:25:59 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpInput* input; /* (offset 16)
|
2012-02-28 17:26:03 +04:00
|
|
|
Input handle for the connection.
|
2012-03-02 01:06:03 +04:00
|
|
|
Will be initialized by a call to freerdp_context_new() */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpUpdate* update; /* (offset 17)
|
2012-02-28 17:26:03 +04:00
|
|
|
Update display parameters. Used to register display events callbacks and settings.
|
2012-03-02 01:06:03 +04:00
|
|
|
Will be initialized by a call to freerdp_context_new() */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 rdpSettings* settings; /**< (offset 18)
|
2012-02-28 17:26:03 +04:00
|
|
|
Pointer to a rdpSettings structure. Will be used to maintain the required RDP settings.
|
2012-03-02 01:06:03 +04:00
|
|
|
Will be initialized by a call to freerdp_context_new() */
|
2014-10-28 18:29:40 +03:00
|
|
|
ALIGN64 rdpAutoDetect* autodetect; /* (offset 19)
|
|
|
|
Auto-Detect handle for the connection.
|
|
|
|
Will be initialized by a call to freerdp_context_new() */
|
|
|
|
UINT64 paddingB[32 - 20]; /* 20 */
|
2011-11-20 23:25:59 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 size_t ContextSize; /* (offset 32)
|
2012-02-28 17:26:03 +04:00
|
|
|
Specifies the size of the 'context' field. freerdp_context_new() will use this size to allocate the context buffer.
|
|
|
|
freerdp_new() sets it to sizeof(rdpContext).
|
|
|
|
If modifying it, there should always be a minimum of sizeof(rdpContext), as the freerdp library will assume it can use the
|
|
|
|
'context' field to set the required informations in it.
|
|
|
|
Clients will typically make it bigger, and use a context structure embedding the rdpContext, and
|
|
|
|
adding additional information after that.
|
|
|
|
*/
|
2012-02-23 19:22:05 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pContextNew ContextNew; /**< (offset 33)
|
2012-02-23 19:22:05 +04:00
|
|
|
Callback for context allocation
|
|
|
|
Can be set before calling freerdp_context_new() to have it executed after allocation and initialization.
|
|
|
|
Must be set to NULL if not needed. */
|
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pContextFree ContextFree; /**< (offset 34)
|
2012-02-23 19:22:05 +04:00
|
|
|
Callback for context deallocation
|
|
|
|
Can be set before calling freerdp_context_free() to have it executed before deallocation.
|
|
|
|
Must be set to NULL if not needed. */
|
2013-06-14 23:07:17 +04:00
|
|
|
UINT64 paddingC[48 - 35]; /* 35 */
|
2011-11-20 23:25:59 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pPreConnect PreConnect; /**< (offset 48)
|
2012-02-23 19:22:05 +04:00
|
|
|
Callback for pre-connect operations.
|
|
|
|
Can be set before calling freerdp_connect() to have it executed before the actual connection happens.
|
|
|
|
Must be set to NULL if not needed. */
|
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pPostConnect PostConnect; /**< (offset 49)
|
2012-02-23 19:22:05 +04:00
|
|
|
Callback for post-connect operations.
|
|
|
|
Can be set before calling freerdp_connect() to have it executed after the actual connection has succeeded.
|
|
|
|
Must be set to NULL if not needed. */
|
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pAuthenticate Authenticate; /**< (offset 50)
|
2012-02-26 00:55:59 +04:00
|
|
|
Callback for authentication.
|
|
|
|
It is used to get the username/password when it was not provided at connection time. */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pVerifyCertificate VerifyCertificate; /**< (offset 51)
|
2012-02-26 00:55:59 +04:00
|
|
|
Callback for certificate validation.
|
|
|
|
Used to verify that an unknown certificate is trusted. */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pVerifyChangedCertificate VerifyChangedCertificate; /**< (offset 52)
|
2015-06-11 12:16:45 +03:00
|
|
|
Callback for changed certificate validation.
|
2012-06-29 05:05:10 +04:00
|
|
|
Used when a certificate differs from stored fingerprint.
|
2012-10-09 10:31:28 +04:00
|
|
|
If returns TRUE, the new fingerprint will be trusted and old thrown out. */
|
2013-03-29 06:26:28 +04:00
|
|
|
|
2016-08-09 13:04:06 +03:00
|
|
|
ALIGN64 pVerifyX509Certificate
|
|
|
|
VerifyX509Certificate; /**< (offset 53) Callback for X509 certificate verification (PEM format) */
|
2013-03-29 06:26:28 +04:00
|
|
|
|
2016-08-09 13:04:06 +03:00
|
|
|
ALIGN64 pLogonErrorInfo
|
|
|
|
LogonErrorInfo; /**< (offset 54) Callback for logon error info, important for logon system messages with RemoteApp */
|
2013-11-18 22:54:33 +04:00
|
|
|
|
|
|
|
ALIGN64 pPostDisconnect PostDisconnect; /**< (offset 55)
|
2013-08-19 19:44:52 +04:00
|
|
|
Callback for cleaning up resources allocated
|
|
|
|
by connect callbacks. */
|
|
|
|
|
2013-12-07 07:15:45 +04:00
|
|
|
ALIGN64 pAuthenticate GatewayAuthenticate; /**< (offset 56)
|
|
|
|
Callback for gateway authentication.
|
|
|
|
It is used to get the username/password when it was not provided at connection time. */
|
|
|
|
|
|
|
|
UINT64 paddingD[64 - 57]; /* 57 */
|
2011-11-20 23:25:59 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pSendChannelData SendChannelData; /* (offset 64)
|
2012-02-28 17:26:03 +04:00
|
|
|
Callback for sending data to a channel.
|
|
|
|
By default, it is set by freerdp_new() to freerdp_send_channel_data(), which eventually calls
|
|
|
|
freerdp_channel_send() */
|
2013-06-14 23:07:17 +04:00
|
|
|
ALIGN64 pReceiveChannelData ReceiveChannelData; /* (offset 65)
|
2012-02-28 17:26:03 +04:00
|
|
|
Callback for receiving data from a channel.
|
|
|
|
This is called by freerdp_channel_process() (if not NULL).
|
|
|
|
Clients will typically use a function that calls freerdp_channels_data() to perform the needed tasks. */
|
2013-05-14 01:39:53 +04:00
|
|
|
|
2013-06-14 23:07:17 +04:00
|
|
|
UINT64 paddingE[80 - 66]; /* 66 */
|
2011-07-28 09:04:01 +04:00
|
|
|
};
|
2011-07-28 08:38:25 +04:00
|
|
|
|
2016-11-14 23:23:05 +03:00
|
|
|
struct rdp_channel_handles
|
|
|
|
{
|
|
|
|
wListDictionary* init;
|
|
|
|
wListDictionary* open;
|
|
|
|
};
|
|
|
|
typedef struct rdp_channel_handles rdpChannelHandles;
|
|
|
|
|
2015-04-28 18:00:41 +03:00
|
|
|
FREERDP_API BOOL freerdp_context_new(freerdp* instance);
|
2011-10-16 08:50:10 +04:00
|
|
|
FREERDP_API void freerdp_context_free(freerdp* instance);
|
|
|
|
|
2012-10-09 10:38:39 +04:00
|
|
|
FREERDP_API BOOL freerdp_connect(freerdp* instance);
|
2015-07-03 12:49:40 +03:00
|
|
|
FREERDP_API BOOL freerdp_abort_connect(freerdp* instance);
|
2012-10-09 10:38:39 +04:00
|
|
|
FREERDP_API BOOL freerdp_shall_disconnect(freerdp* instance);
|
|
|
|
FREERDP_API BOOL freerdp_disconnect(freerdp* instance);
|
2014-01-17 02:38:56 +04:00
|
|
|
FREERDP_API BOOL freerdp_reconnect(freerdp* instance);
|
2011-10-17 05:02:28 +04:00
|
|
|
|
2016-12-19 19:07:01 +03:00
|
|
|
FREERDP_API UINT freerdp_channel_add_init_handle_data(rdpChannelHandles* handles, void* pInitHandle,
|
|
|
|
void* pUserData);
|
|
|
|
FREERDP_API void* freerdp_channel_get_init_handle_data(rdpChannelHandles* handles,
|
|
|
|
void* pInitHandle);
|
|
|
|
FREERDP_API void freerdp_channel_remove_init_handle_data(rdpChannelHandles* handles,
|
|
|
|
void* pInitHandle);
|
|
|
|
|
|
|
|
FREERDP_API UINT freerdp_channel_add_open_handle_data(rdpChannelHandles* handles, DWORD openHandle,
|
|
|
|
void* pUserData);
|
|
|
|
FREERDP_API void* freerdp_channel_get_open_handle_data(rdpChannelHandles* handles,
|
|
|
|
DWORD openHandle);
|
|
|
|
FREERDP_API void freerdp_channel_remove_open_handle_data(rdpChannelHandles* handles,
|
|
|
|
DWORD openHandle);
|
|
|
|
|
|
|
|
FREERDP_API UINT freerdp_channels_attach(freerdp* instance);
|
|
|
|
FREERDP_API UINT freerdp_channels_detach(freerdp* instance);
|
2016-08-09 13:04:06 +03:00
|
|
|
|
|
|
|
FREERDP_API BOOL freerdp_get_fds(freerdp* instance, void** rfds, int* rcount,
|
|
|
|
void** wfds, int* wcount);
|
2012-10-09 10:38:39 +04:00
|
|
|
FREERDP_API BOOL freerdp_check_fds(freerdp* instance);
|
2011-10-17 05:02:28 +04:00
|
|
|
|
2016-08-09 13:04:06 +03:00
|
|
|
FREERDP_API DWORD freerdp_get_event_handles(rdpContext* context, HANDLE* events,
|
|
|
|
DWORD count);
|
2015-01-30 06:57:58 +03:00
|
|
|
FREERDP_API BOOL freerdp_check_event_handles(rdpContext* context);
|
|
|
|
|
2016-08-09 13:04:06 +03:00
|
|
|
FREERDP_API wMessageQueue* freerdp_get_message_queue(freerdp* instance,
|
|
|
|
DWORD id);
|
|
|
|
FREERDP_API HANDLE freerdp_get_message_queue_event_handle(freerdp* instance,
|
|
|
|
DWORD id);
|
|
|
|
FREERDP_API int freerdp_message_queue_process_message(freerdp* instance,
|
|
|
|
DWORD id, wMessage* message);
|
|
|
|
FREERDP_API int freerdp_message_queue_process_pending_messages(
|
|
|
|
freerdp* instance, DWORD id);
|
2013-01-28 06:07:17 +04:00
|
|
|
|
2012-10-09 11:26:39 +04:00
|
|
|
FREERDP_API UINT32 freerdp_error_info(freerdp* instance);
|
2015-01-13 19:09:36 +03:00
|
|
|
FREERDP_API void freerdp_set_error_info(rdpRdp* rdp, UINT32 error);
|
2011-10-24 22:37:21 +04:00
|
|
|
|
2012-01-14 22:33:04 +04:00
|
|
|
FREERDP_API void freerdp_get_version(int* major, int* minor, int* revision);
|
2015-03-30 19:09:02 +03:00
|
|
|
FREERDP_API const char* freerdp_get_version_string(void);
|
|
|
|
FREERDP_API const char* freerdp_get_build_date(void);
|
|
|
|
FREERDP_API const char* freerdp_get_build_revision(void);
|
2016-01-28 16:26:50 +03:00
|
|
|
FREERDP_API const char* freerdp_get_build_config(void);
|
2012-01-14 22:33:04 +04:00
|
|
|
|
2013-02-15 01:20:43 +04:00
|
|
|
FREERDP_API freerdp* freerdp_new(void);
|
2011-07-28 08:38:25 +04:00
|
|
|
FREERDP_API void freerdp_free(freerdp* instance);
|
|
|
|
|
2013-04-15 14:14:09 +04:00
|
|
|
FREERDP_API BOOL freerdp_focus_required(freerdp* instance);
|
2014-10-03 18:27:47 +04:00
|
|
|
FREERDP_API void freerdp_set_focus(freerdp* instance);
|
2013-06-14 23:07:17 +04:00
|
|
|
|
2014-03-21 02:19:54 +04:00
|
|
|
FREERDP_API UINT32 freerdp_get_last_error(rdpContext* context);
|
2015-03-19 13:05:16 +03:00
|
|
|
FREERDP_API const char* freerdp_get_last_error_name(UINT32 error);
|
|
|
|
FREERDP_API const char* freerdp_get_last_error_string(UINT32 error);
|
2014-03-21 02:19:54 +04:00
|
|
|
FREERDP_API void freerdp_set_last_error(rdpContext* context, UINT32 lastError);
|
|
|
|
|
2016-08-09 13:04:06 +03:00
|
|
|
FREERDP_API ULONG freerdp_get_transport_sent(rdpContext* context,
|
|
|
|
BOOL resetCount);
|
2015-04-14 13:49:01 +03:00
|
|
|
|
2015-09-03 14:43:08 +03:00
|
|
|
FREERDP_API void clearChannelError(rdpContext* context);
|
2015-07-15 10:50:35 +03:00
|
|
|
FREERDP_API HANDLE getChannelErrorEventHandle(rdpContext* context);
|
2015-08-27 15:25:09 +03:00
|
|
|
FREERDP_API UINT getChannelError(rdpContext* context);
|
2015-07-15 10:50:35 +03:00
|
|
|
FREERDP_API const char* getChannelErrorDescription(rdpContext* context);
|
2016-08-09 13:04:06 +03:00
|
|
|
FREERDP_API void setChannelError(rdpContext* context, UINT errorNum,
|
|
|
|
char* description);
|
2015-07-15 10:50:35 +03:00
|
|
|
FREERDP_API BOOL checkChannelErrorEvent(rdpContext* context);
|
|
|
|
|
2011-07-01 05:23:36 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-12-14 09:25:48 +04:00
|
|
|
#endif /* FREERDP_H */
|