drdynvc.h (2084B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Dynamic Virtual Channel Extension 4 * 5 * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com> 6 * Copyright 2015 Thincast Technologies GmbH 7 * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com> 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22#ifndef FREERDP_CHANNEL_DRDYNVC_CLIENT_DRDYNVC_H 23#define FREERDP_CHANNEL_DRDYNVC_CLIENT_DRDYNVC_H 24 25/** 26 * Client Interface 27 */ 28 29typedef struct _drdynvc_client_context DrdynvcClientContext; 30 31typedef int (*pcDrdynvcGetVersion)(DrdynvcClientContext* context); 32typedef UINT (*pcDrdynvcOnChannelConnected)(DrdynvcClientContext* context, const char* name, 33 void* pInterface); 34typedef UINT (*pcDrdynvcOnChannelDisconnected)(DrdynvcClientContext* context, const char* name, 35 void* pInterface); 36typedef UINT (*pcDrdynvcOnChannelAttached)(DrdynvcClientContext* context, const char* name, 37 void* pInterface); 38typedef UINT (*pcDrdynvcOnChannelDetached)(DrdynvcClientContext* context, const char* name, 39 void* pInterface); 40 41struct _drdynvc_client_context 42{ 43 void* handle; 44 void* custom; 45 46 pcDrdynvcGetVersion GetVersion; 47 pcDrdynvcOnChannelConnected OnChannelConnected; 48 pcDrdynvcOnChannelDisconnected OnChannelDisconnected; 49 pcDrdynvcOnChannelAttached OnChannelAttached; 50 pcDrdynvcOnChannelDetached OnChannelDetached; 51}; 52 53#endif /* FREERDP_CHANNEL_DRDYNVC_CLIENT_DRDYNVC_H */