Blame include/freerdp/server/encomsp.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Multiparty Virtual Channel
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 * Copyright 2015 Thincast Technologies GmbH
Packit 1fb8d4
 * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CHANNEL_ENCOMSP_SERVER_ENCOMSP_H
Packit 1fb8d4
#define FREERDP_CHANNEL_ENCOMSP_SERVER_ENCOMSP_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/api.h>
Packit 1fb8d4
#include <freerdp/types.h>
Packit 1fb8d4
#include <freerdp/channels/wtsvc.h>
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/channels/encomsp.h>
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * Server Interface
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
typedef struct _encomsp_server_context EncomspServerContext;
Packit 1fb8d4
typedef struct _encomsp_server_private EncomspServerPrivate;
Packit 1fb8d4
Packit 1fb8d4
typedef UINT (*psEncomspStart)(EncomspServerContext* context);
Packit 1fb8d4
typedef UINT (*psEncomspStop)(EncomspServerContext* context);
Packit 1fb8d4
Packit Service 5a9772
typedef UINT (*psEncomspFilterUpdated)(EncomspServerContext* context,
Packit Service 5a9772
                                       ENCOMSP_FILTER_UPDATED_PDU* filterUpdated);
Packit Service 5a9772
typedef UINT (*psEncomspApplicationCreated)(EncomspServerContext* context,
Packit Service 5a9772
                                            ENCOMSP_APPLICATION_CREATED_PDU* applicationCreated);
Packit Service 5a9772
typedef UINT (*psEncomspApplicationRemoved)(EncomspServerContext* context,
Packit Service 5a9772
                                            ENCOMSP_APPLICATION_REMOVED_PDU* applicationRemoved);
Packit Service 5a9772
typedef UINT (*psEncomspWindowCreated)(EncomspServerContext* context,
Packit Service 5a9772
                                       ENCOMSP_WINDOW_CREATED_PDU* windowCreated);
Packit Service 5a9772
typedef UINT (*psEncomspWindowRemoved)(EncomspServerContext* context,
Packit Service 5a9772
                                       ENCOMSP_WINDOW_REMOVED_PDU* windowRemoved);
Packit Service 5a9772
typedef UINT (*psEncomspShowWindow)(EncomspServerContext* context,
Packit Service 5a9772
                                    ENCOMSP_SHOW_WINDOW_PDU* showWindow);
Packit Service 5a9772
typedef UINT (*psEncomspParticipantCreated)(EncomspServerContext* context,
Packit Service 5a9772
                                            ENCOMSP_PARTICIPANT_CREATED_PDU* participantCreated);
Packit Service 5a9772
typedef UINT (*psEncomspParticipantRemoved)(EncomspServerContext* context,
Packit Service 5a9772
                                            ENCOMSP_PARTICIPANT_REMOVED_PDU* participantRemoved);
Packit Service 5a9772
typedef UINT (*psEncomspChangeParticipantControlLevel)(
Packit Service 5a9772
    EncomspServerContext* context,
Packit Service 5a9772
    ENCOMSP_CHANGE_PARTICIPANT_CONTROL_LEVEL_PDU* changeParticipantControlLevel);
Packit Service 5a9772
typedef UINT (*psEncomspGraphicsStreamPaused)(
Packit Service 5a9772
    EncomspServerContext* context, ENCOMSP_GRAPHICS_STREAM_PAUSED_PDU* graphicsStreamPaused);
Packit Service 5a9772
typedef UINT (*psEncomspGraphicsStreamResumed)(
Packit Service 5a9772
    EncomspServerContext* context, ENCOMSP_GRAPHICS_STREAM_RESUMED_PDU* graphicsStreamResumed);
Packit 1fb8d4
Packit 1fb8d4
struct _encomsp_server_context
Packit 1fb8d4
{
Packit 1fb8d4
	HANDLE vcm;
Packit 1fb8d4
	void* custom;
Packit 1fb8d4
Packit 1fb8d4
	psEncomspStart Start;
Packit 1fb8d4
	psEncomspStop Stop;
Packit 1fb8d4
Packit 1fb8d4
	psEncomspFilterUpdated FilterUpdated;
Packit 1fb8d4
	psEncomspApplicationCreated ApplicationCreated;
Packit 1fb8d4
	psEncomspApplicationRemoved ApplicationRemoved;
Packit 1fb8d4
	psEncomspWindowCreated WindowCreated;
Packit 1fb8d4
	psEncomspWindowRemoved WindowRemoved;
Packit 1fb8d4
	psEncomspShowWindow ShowWindow;
Packit 1fb8d4
	psEncomspParticipantCreated ParticipantCreated;
Packit 1fb8d4
	psEncomspParticipantRemoved ParticipantRemoved;
Packit 1fb8d4
	psEncomspChangeParticipantControlLevel ChangeParticipantControlLevel;
Packit 1fb8d4
	psEncomspGraphicsStreamPaused GraphicsStreamPaused;
Packit 1fb8d4
	psEncomspGraphicsStreamResumed GraphicsStreamResumed;
Packit 1fb8d4
Packit 1fb8d4
	EncomspServerPrivate* priv;
Packit 1fb8d4
Packit 1fb8d4
	rdpContext* rdpcontext;
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
extern "C"
Packit Service 5a9772
{
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit Service 5a9772
	FREERDP_API EncomspServerContext* encomsp_server_context_new(HANDLE vcm);
Packit Service 5a9772
	FREERDP_API void encomsp_server_context_free(EncomspServerContext* context);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit Service 5a9772
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_ENCOMSP_SERVER_ENCOMSP_H */