~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to server/Mac/mf_interface.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20141111122050-7z628f4ab38qxad5
Tags: upstream-1.1.0~git20140921.1.440916e+dfsg1
ImportĀ upstreamĀ versionĀ 1.1.0~git20140921.1.440916e+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * FreeRDP: A Remote Desktop Protocol Client
 
3
 * FreeRDP Mac OS X Server
 
4
 *
 
5
 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
 
6
 * Copyright 2012 Corey Clayton <can.of.tuna@gmail.com>
 
7
 *
 
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
 
11
 *
 
12
 *     http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
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.
 
19
 */
 
20
 
 
21
#ifndef MF_INTERFACE_H
 
22
#define MF_INTERFACE_H
 
23
 
 
24
#include <pthread.h>
 
25
 
 
26
#include <freerdp/codec/rfx.h>
 
27
#include <freerdp/codec/nsc.h>
 
28
#include <freerdp/listener.h>
 
29
 
 
30
#include <winpr/crt.h>
 
31
 
 
32
//#ifdef WITH_SERVER_CHANNELS
 
33
#include <freerdp/channels/wtsvc.h>
 
34
//#endif
 
35
 
 
36
//#ifdef CHANNEL_RDPSND_SERVER
 
37
#include <freerdp/server/rdpsnd.h>
 
38
//#include "mf_rdpsnd.h"
 
39
//#endif
 
40
 
 
41
//#ifdef CHANNEL_AUDIN_SERVER
 
42
#include <freerdp/server/audin.h>
 
43
//#include "mf_audin.h"
 
44
//#endif
 
45
 
 
46
typedef struct mf_info mfInfo;
 
47
typedef struct mf_peer_context mfPeerContext;
 
48
 
 
49
struct mf_peer_context
 
50
{
 
51
        rdpContext _p;
 
52
        
 
53
        mfInfo* info;
 
54
        wStream* s;
 
55
        BOOL activated;
 
56
        UINT32 frame_id;
 
57
        BOOL audin_open;
 
58
        RFX_CONTEXT* rfx_context;
 
59
        NSC_CONTEXT* nsc_context;
 
60
        
 
61
        //#ifdef WITH_SERVER_CHANNELS
 
62
        WTSVirtualChannelManager* vcm;
 
63
        //#endif
 
64
        //#ifdef CHANNEL_AUDIN_SERVER
 
65
        audin_server_context* audin;
 
66
        //#endif
 
67
        
 
68
        //#ifdef CHANNEL_RDPSND_SERVER
 
69
        rdpsnd_server_context* rdpsnd;
 
70
        //#endif
 
71
};
 
72
 
 
73
 
 
74
struct mf_info
 
75
{
 
76
        //STREAM* s;
 
77
        
 
78
        //screen and monitor info
 
79
        UINT32 screenID;
 
80
        UINT32 virtscreen_width;
 
81
        UINT32 virtscreen_height;
 
82
        UINT32 servscreen_width;
 
83
        UINT32 servscreen_height;
 
84
        UINT32 servscreen_xoffset;
 
85
        UINT32 servscreen_yoffset;
 
86
        
 
87
        int bitsPerPixel;
 
88
        int peerCount;
 
89
        int activePeerCount;
 
90
        int framesPerSecond;
 
91
        freerdp_peer** peers;
 
92
        unsigned int framesWaiting;
 
93
        UINT32 scale;
 
94
        
 
95
        RFX_RECT invalid;
 
96
        pthread_mutex_t mutex;
 
97
        
 
98
        BOOL mouse_down_left;
 
99
        BOOL mouse_down_right;
 
100
        BOOL mouse_down_other;
 
101
        BOOL input_disabled;
 
102
        BOOL force_all_disconnect;
 
103
};
 
104
 
 
105
#endif