FreeRDP
mf_peer.c File Reference
#include <freerdp/config.h>
#include <freerdp/listener.h>
#include <freerdp/codec/rfx.h>
#include <winpr/stream.h>
#include <freerdp/peer.h>
#include <freerdp/codec/color.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include "mf_peer.h"
#include "mf_info.h"
#include "mf_input.h"
#include "mf_event.h"
#include "mf_rdpsnd.h"
#include "mf_audin.h"
#include <mach/clock.h>
#include <mach/mach.h>
#include <dispatch/dispatch.h>
#include "OpenGL/OpenGL.h"
#include "OpenGL/gl.h"
#include "CoreVideo/CoreVideo.h"
#include <freerdp/log.h>

Macros

#define TAG   SERVER_TAG("mac")
 

Functions

static void mf_peer_context_free (freerdp_peer *client, rdpContext *context)
 
static BOOL mf_peer_get_fds (freerdp_peer *client, void **rfds, int *rcount)
 
static void mf_peer_rfx_update (freerdp_peer *client)
 
static BOOL mf_peer_check_fds (freerdp_peer *client)
 
static BOOL mf_peer_context_new (freerdp_peer *client, rdpContext *context)
 
static BOOL mf_peer_init (freerdp_peer *client)
 
static BOOL mf_peer_post_connect (freerdp_peer *client)
 
static BOOL mf_peer_activate (freerdp_peer *client)
 
static BOOL mf_peer_synchronize_event (rdpInput *input, UINT32 flags)
 
static BOOL mf_peer_keyboard_event (rdpInput *input, UINT16 flags, UINT8 code)
 
static BOOL mf_peer_unicode_keyboard_event (rdpInput *input, UINT16 flags, UINT16 code)
 
static BOOL mf_peer_suppress_output (rdpContext *context, BYTE allow, const RECTANGLE_16 *area)
 
static void * mf_peer_main_loop (void *arg)
 
BOOL mf_peer_accepted (freerdp_listener *instance, freerdp_peer *client)
 

Variables

static int info_last_sec = 0
 
static int info_last_nsec = 0
 
static dispatch_source_t info_timer
 
static dispatch_queue_t info_queue
 
static mfEventQueue * info_event_queue
 
static CGLContextObj glContext
 
static CGContextRef bmp
 
static CGImageRef img
 

Macro Definition Documentation

◆ TAG

#define TAG   SERVER_TAG("mac")

FreeRDP: A Remote Desktop Protocol Client FreeRDP Mac OS X Server

Copyright 2012 Corey Clayton can.o.nosp@m.f.tu.nosp@m.na@gm.nosp@m.ail..nosp@m.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.

Function Documentation

◆ mf_peer_accepted()

BOOL mf_peer_accepted ( freerdp_listener *  instance,
freerdp_peer *  client 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_activate()

static BOOL mf_peer_activate ( freerdp_peer *  client)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_check_fds()

static BOOL mf_peer_check_fds ( freerdp_peer *  client)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_context_free()

static void mf_peer_context_free ( freerdp_peer *  client,
rdpContext *  context 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_context_new()

static BOOL mf_peer_context_new ( freerdp_peer *  client,
rdpContext *  context 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_get_fds()

static BOOL mf_peer_get_fds ( freerdp_peer *  client,
void **  rfds,
int *  rcount 
)
static

◆ mf_peer_init()

static BOOL mf_peer_init ( freerdp_peer *  client)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_keyboard_event()

static BOOL mf_peer_keyboard_event ( rdpInput *  input,
UINT16  flags,
UINT8  code 
)
static

◆ mf_peer_main_loop()

static void* mf_peer_main_loop ( void *  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_post_connect()

static BOOL mf_peer_post_connect ( freerdp_peer *  client)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_rfx_update()

static void mf_peer_rfx_update ( freerdp_peer *  client)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mf_peer_suppress_output()

static BOOL mf_peer_suppress_output ( rdpContext *  context,
BYTE  allow,
const RECTANGLE_16 area 
)
static
Here is the caller graph for this function:

◆ mf_peer_synchronize_event()

static BOOL mf_peer_synchronize_event ( rdpInput *  input,
UINT32  flags 
)
static
Here is the caller graph for this function:

◆ mf_peer_unicode_keyboard_event()

static BOOL mf_peer_unicode_keyboard_event ( rdpInput *  input,
UINT16  flags,
UINT16  code 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ bmp

CGContextRef bmp
static

◆ glContext

CGLContextObj glContext
static

◆ img

CGImageRef img
static

◆ info_event_queue

mfEventQueue* info_event_queue
static

◆ info_last_nsec

int info_last_nsec = 0
static

◆ info_last_sec

int info_last_sec = 0
static

◆ info_queue

dispatch_queue_t info_queue
static

◆ info_timer

dispatch_source_t info_timer
static