| 1 | /** |
| 2 | * FreeRDP: A Remote Desktop Protocol Implementation |
| 3 | * Dynamic Virtual Channel |
| 4 | * |
| 5 | * Copyright 2010-2011 Vic Lee |
| 6 | * Copyright 2015 Thincast Technologies GmbH |
| 7 | * Copyright 2015 DI (FH) Martin Haimberger <[email protected]> |
| 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_MAIN_H |
| 23 | #define FREERDP_CHANNEL_DRDYNVC_CLIENT_MAIN_Hcxx . . $ `channels/drdynvc/client/drdynvc_main.h:23:9`! |
| 24 | |
| 25 | #include <winpr/wlog.h>cxx . . $ `<file>/winpr/include/winpr/wlog.h`/ |
| 26 | #include <winpr/synch.h>cxx . . $ `<file>/winpr/include/winpr/synch.h`/ |
| 27 | #include <freerdp/settings.h>cxx . . $ `<file>/include/freerdp/settings.h`/ |
| 28 | #include <winpr/collections.h>cxx . . $ `<file>/winpr/include/winpr/collections.h`/ |
| 29 | |
| 30 | #include <freerdp/api.h>cxx . . $ `<file>/include/freerdp/api.h`/ |
| 31 | #include <freerdp/svc.h>cxx . . $ `<file>/include/freerdp/svc.h`/ |
| 32 | #include <freerdp/dvc.h>cxx . . $ `<file>/include/freerdp/dvc.h`/ |
| 33 | #include <freerdp/addin.h>cxx . . $ `<file>/include/freerdp/addin.h`/ |
| 34 | #include <freerdp/channels/log.h>cxx . . $ `<file>/include/freerdp/channels/log.h`/ |
| 35 | #include <freerdp/client/drdynvc.h>cxx . . $ `<file>/include/freerdp/client/drdynvc.h`/ |
| 36 | #include <freerdp/codec/zgfx.h>cxx . . $ `<file>/include/freerdp/codec/zgfx.h`/ |
| 37 | #include <freerdp/freerdp.h>cxx . . $ `<file>/include/freerdp/freerdp.h`/ |
| 38 | |
| 39 | typedef struct drdynvc_plugincxx . . $ drdynvc_plugin# drdynvcPlugincxx . . $ drdynvcPlugin#; |
| 40 | |
| 41 | typedef structcxx . . $ $anonymous_type_f378133f074b5511_0# |
| 42 | { |
| 43 | IWTSVirtualChannelManagercxx . . $ IWTSVirtualChannelManager# ifacecxx . . $ $anonymous_type_f378133f074b5511_0#iface.; |
| 44 | |
| 45 | drdynvcPlugincxx . . $ drdynvcPlugin#* drdynvccxx . . $ $anonymous_type_f378133f074b5511_0#drdynvc.; |
| 46 | |
| 47 | wArrayListcxx . . $ wArrayList#* plugin_namescxx . . $ $anonymous_type_f378133f074b5511_0#plugin_names.; |
| 48 | wArrayListcxx . . $ wArrayList#* pluginscxx . . $ $anonymous_type_f378133f074b5511_0#plugins.; |
| 49 | |
| 50 | wHashTablecxx . . $ wHashTable#* listenerscxx . . $ $anonymous_type_f378133f074b5511_0#listeners.; |
| 51 | wHashTablecxx . . $ wHashTable#* channelsByIdcxx . . $ $anonymous_type_f378133f074b5511_0#channelsById.; |
| 52 | wStreamPoolcxx . . $ wStreamPool#* poolcxx . . $ $anonymous_type_f378133f074b5511_0#pool.; |
| 53 | } DVCMANcxx . . $ DVCMAN#; |
| 54 | |
| 55 | typedef structcxx . . $ $anonymous_type_f378133f074b5511_1# |
| 56 | { |
| 57 | IWTSListenercxx . . $ IWTSListener# ifacecxx . . $ $anonymous_type_f378133f074b5511_1#iface.; |
| 58 | |
| 59 | DVCMANcxx . . $ DVCMAN#* dvcmancxx . . $ $anonymous_type_f378133f074b5511_1#dvcman.; |
| 60 | char* channel_namecxx . . $ $anonymous_type_f378133f074b5511_1#channel_name.; |
| 61 | UINT32cxx . . $ UINT32# flagscxx . . $ $anonymous_type_f378133f074b5511_1#flags.; |
| 62 | IWTSListenerCallbackcxx . . $ IWTSListenerCallback#* listener_callbackcxx . . $ $anonymous_type_f378133f074b5511_1#listener_callback.; |
| 63 | } DVCMAN_LISTENERcxx . . $ DVCMAN_LISTENER#; |
| 64 | |
| 65 | typedef structcxx . . $ $anonymous_type_f378133f074b5511_2# |
| 66 | { |
| 67 | IDRDYNVC_ENTRY_POINTScxx . . $ IDRDYNVC_ENTRY_POINTS# ifacecxx . . $ $anonymous_type_f378133f074b5511_2#iface.; |
| 68 | |
| 69 | DVCMANcxx . . $ DVCMAN#* dvcmancxx . . $ $anonymous_type_f378133f074b5511_2#dvcman.; |
| 70 | const ADDIN_ARGVcxx . . $ ADDIN_ARGV#* argscxx . . $ $anonymous_type_f378133f074b5511_2#args.; |
| 71 | rdpContextcxx . . $ rdpContext#* contextcxx . . $ $anonymous_type_f378133f074b5511_2#context.; |
| 72 | } DVCMAN_ENTRY_POINTScxx . . $ DVCMAN_ENTRY_POINTS#; |
| 73 | |
| 74 | typedef enumcxx . . $ $anonymous_type_f378133f074b5511_3# |
| 75 | { |
| 76 | DVC_CHANNEL_INITcxx . . $ DVC_CHANNEL_INIT., |
| 77 | DVC_CHANNEL_RUNNINGcxx . . $ DVC_CHANNEL_RUNNING., |
| 78 | DVC_CHANNEL_CLOSEDcxx . . $ DVC_CHANNEL_CLOSED. |
| 79 | } DVC_CHANNEL_STATEcxx . . $ DVC_CHANNEL_STATE#; |
| 80 | |
| 81 | typedef structcxx . . $ $anonymous_type_f378133f074b5511_4# |
| 82 | { |
| 83 | uint64_tcxx . . $ uint64_t# bytesIncxx . . $ $anonymous_type_f378133f074b5511_4#bytesIn.; |
| 84 | uint64_tcxx . . $ uint64_t# bytesOutcxx . . $ $anonymous_type_f378133f074b5511_4#bytesOut.; |
| 85 | uint64_tcxx . . $ uint64_t# fragmentsIncxx . . $ $anonymous_type_f378133f074b5511_4#fragmentsIn.; |
| 86 | uint64_tcxx . . $ uint64_t# fragmentsOutcxx . . $ $anonymous_type_f378133f074b5511_4#fragmentsOut.; |
| 87 | uint64_tcxx . . $ uint64_t# packetsIncxx . . $ $anonymous_type_f378133f074b5511_4#packetsIn.; |
| 88 | uint64_tcxx . . $ uint64_t# packetsOutcxx . . $ $anonymous_type_f378133f074b5511_4#packetsOut.; |
| 89 | } DVCMAN_CHANNEL_STATScxx . . $ DVCMAN_CHANNEL_STATS#; |
| 90 | |
| 91 | typedef structcxx . . $ $anonymous_type_f378133f074b5511_5# |
| 92 | { |
| 93 | IWTSVirtualChannelcxx . . $ IWTSVirtualChannel# ifacecxx . . $ $anonymous_type_f378133f074b5511_5#iface.; |
| 94 | |
| 95 | volatile LONGcxx . . $ LONG# refCountercxx . . $ $anonymous_type_f378133f074b5511_5#refCounter.; |
| 96 | DVC_CHANNEL_STATEcxx . . $ DVC_CHANNEL_STATE# statecxx . . $ $anonymous_type_f378133f074b5511_5#state.; |
| 97 | DVCMANcxx . . $ DVCMAN#* dvcmancxx . . $ $anonymous_type_f378133f074b5511_5#dvcman.; |
| 98 | void* pInterfacecxx . . $ $anonymous_type_f378133f074b5511_5#pInterface.; |
| 99 | UINT32cxx . . $ UINT32# channel_idcxx . . $ $anonymous_type_f378133f074b5511_5#channel_id.; |
| 100 | char* channel_namecxx . . $ $anonymous_type_f378133f074b5511_5#channel_name.; |
| 101 | IWTSVirtualChannelCallbackcxx . . $ IWTSVirtualChannelCallback#* channel_callbackcxx . . $ $anonymous_type_f378133f074b5511_5#channel_callback.; |
| 102 | |
| 103 | wStreamcxx . . $ wStream#* dvc_datacxx . . $ $anonymous_type_f378133f074b5511_5#dvc_data.; |
| 104 | UINT32cxx . . $ UINT32# dvc_data_lengthcxx . . $ $anonymous_type_f378133f074b5511_5#dvc_data_length.; |
| 105 | ZGFX_CONTEXTcxx . . $ ZGFX_CONTEXT#* decompressorcxx . . $ $anonymous_type_f378133f074b5511_5#decompressor.; |
| 106 | CRITICAL_SECTIONcxx . . $ CRITICAL_SECTION# lockcxx . . $ $anonymous_type_f378133f074b5511_5#lock.; |
| 107 | DVCMAN_CHANNEL_STATScxx . . $ DVCMAN_CHANNEL_STATS# statscxx . . $ $anonymous_type_f378133f074b5511_5#stats.; |
| 108 | } DVCMAN_CHANNELcxx . . $ DVCMAN_CHANNEL#; |
| 109 | |
| 110 | typedef enumcxx . . $ $anonymous_type_f378133f074b5511_6# |
| 111 | { |
| 112 | DRDYNVC_STATE_INITIALcxx . . $ DRDYNVC_STATE_INITIAL., |
| 113 | DRDYNVC_STATE_CAPABILITIEScxx . . $ DRDYNVC_STATE_CAPABILITIES., |
| 114 | DRDYNVC_STATE_READYcxx . . $ DRDYNVC_STATE_READY., |
| 115 | DRDYNVC_STATE_OPENING_CHANNELcxx . . $ DRDYNVC_STATE_OPENING_CHANNEL., |
| 116 | DRDYNVC_STATE_SEND_RECEIVEcxx . . $ DRDYNVC_STATE_SEND_RECEIVE., |
| 117 | DRDYNVC_STATE_FINALcxx . . $ DRDYNVC_STATE_FINAL. |
| 118 | } DRDYNVC_STATEcxx . . $ DRDYNVC_STATE#; |
| 119 | |
| 120 | struct drdynvc_plugincxx . . $ drdynvc_plugin# |
| 121 | { |
| 122 | CHANNEL_DEFcxx . . $ CHANNEL_DEF# channelDefcxx . . $ drdynvc_plugin#channelDef.; |
| 123 | CHANNEL_ENTRY_POINTS_FREERDP_EXcxx . . $ CHANNEL_ENTRY_POINTS_FREERDP_EX# channelEntryPointscxx . . $ drdynvc_plugin#channelEntryPoints.; |
| 124 | |
| 125 | wLogcxx . . $ wLog#* logcxx . . $ drdynvc_plugin#log.; |
| 126 | HANDLEcxx . . $ HANDLE# threadcxx . . $ drdynvc_plugin#thread.; |
| 127 | BOOLcxx . . $ BOOL# asynccxx . . $ drdynvc_plugin#async.; |
| 128 | wStreamcxx . . $ wStream#* data_incxx . . $ drdynvc_plugin#data_in.; |
| 129 | void* InitHandlecxx . . $ drdynvc_plugin#InitHandle.; |
| 130 | DWORDcxx . . $ DWORD# OpenHandlecxx . . $ drdynvc_plugin#OpenHandle.; |
| 131 | wMessageQueuecxx . . $ wMessageQueue#* queuecxx . . $ drdynvc_plugin#queue.; |
| 132 | |
| 133 | DRDYNVC_STATEcxx . . $ DRDYNVC_STATE# statecxx . . $ drdynvc_plugin#state.; |
| 134 | DrdynvcClientContextcxx . . $ DrdynvcClientContext#* contextcxx . . $ drdynvc_plugin#context.; |
| 135 | |
| 136 | UINT16cxx . . $ UINT16# versioncxx . . $ drdynvc_plugin#version.; |
| 137 | int PriorityCharge0cxx . . $ drdynvc_plugin#PriorityCharge0.; |
| 138 | int PriorityCharge1cxx . . $ drdynvc_plugin#PriorityCharge1.; |
| 139 | int PriorityCharge2cxx . . $ drdynvc_plugin#PriorityCharge2.; |
| 140 | int PriorityCharge3cxx . . $ drdynvc_plugin#PriorityCharge3.; |
| 141 | rdpContextcxx . . $ rdpContext#* rdpcontextcxx . . $ drdynvc_plugin#rdpcontext.; |
| 142 | |
| 143 | IWTSVirtualChannelManagercxx . . $ IWTSVirtualChannelManager#* channel_mgrcxx . . $ drdynvc_plugin#channel_mgr.; |
| 144 | }; |
| 145 | |
| 146 | #endif /* FREERDP_CHANNEL_DRDYNVC_CLIENT_MAIN_H */ |