2
* FreeRDP: A Remote Desktop Protocol Client
3
* FreeRDP Mac OS X Server
5
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6
* Copyright 2012 Corey Clayton <can.of.tuna@gmail.com>
8
* Licensed under the Apache License, Version 2.0 (the "License");
9
* you may not use this file except in compliance with the License.
10
* You may obtain a copy of the License at
12
* http://www.apache.org/licenses/LICENSE-2.0
14
* Unless required by applicable law or agreed to in writing, software
15
* distributed under the License is distributed on an "AS IS" BASIS,
16
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
* See the License for the specific language governing permissions and
18
* limitations under the License.
21
#ifndef MF_INTERFACE_H
22
#define MF_INTERFACE_H
26
#include <freerdp/codec/rfx.h>
27
#include <freerdp/codec/nsc.h>
28
#include <freerdp/listener.h>
30
#include <winpr/crt.h>
32
//#ifdef WITH_SERVER_CHANNELS
33
#include <freerdp/channels/wtsvc.h>
36
//#ifdef CHANNEL_RDPSND_SERVER
37
#include <freerdp/server/rdpsnd.h>
38
//#include "mf_rdpsnd.h"
41
//#ifdef CHANNEL_AUDIN_SERVER
42
#include <freerdp/server/audin.h>
43
//#include "mf_audin.h"
46
typedef struct mf_info mfInfo;
47
typedef struct mf_peer_context mfPeerContext;
49
struct mf_peer_context
58
RFX_CONTEXT* rfx_context;
59
NSC_CONTEXT* nsc_context;
61
//#ifdef WITH_SERVER_CHANNELS
62
WTSVirtualChannelManager* vcm;
64
//#ifdef CHANNEL_AUDIN_SERVER
65
audin_server_context* audin;
68
//#ifdef CHANNEL_RDPSND_SERVER
69
rdpsnd_server_context* rdpsnd;
78
//screen and monitor info
80
UINT32 virtscreen_width;
81
UINT32 virtscreen_height;
82
UINT32 servscreen_width;
83
UINT32 servscreen_height;
84
UINT32 servscreen_xoffset;
85
UINT32 servscreen_yoffset;
92
unsigned int framesWaiting;
96
pthread_mutex_t mutex;
99
BOOL mouse_down_right;
100
BOOL mouse_down_other;
102
BOOL force_all_disconnect;