2 * FreeRDP: A Remote Desktop Protocol client.
3 * File System Virtual Channel
5 * Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6 * Copyright 2010-2011 Vic Lee
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #ifndef __RDPDR_TYPES_H
22 #define __RDPDR_TYPES_H
25 #include <freerdp/utils/stream.h>
26 #include <freerdp/utils/list.h>
27 #include <freerdp/utils/svc_plugin.h>
29 typedef struct _DEVICE DEVICE;
30 typedef struct _IRP IRP;
31 typedef struct _DEVMAN DEVMAN;
34 typedef void (*pcIRPRequest)(DEVICE* device, IRP* irp);
35 typedef void (*pcFreeDevice)(DEVICE* device);
45 pcIRPRequest IRPRequest;
49 typedef void (*pcIRPResponse)(IRP* irp);
64 pcIRPResponse Complete;
65 pcIRPResponse Discard;
71 uint32 id_sequence; /* generate unique device id */
75 typedef void (*pcRegisterDevice)(DEVMAN* devman, DEVICE* device);
77 struct _DEVICE_SERVICE_ENTRY_POINTS
81 pcRegisterDevice RegisterDevice;
82 pcRegisterDevice UnregisterDevice;
83 RDP_PLUGIN_DATA* plugin_data;
85 typedef struct _DEVICE_SERVICE_ENTRY_POINTS DEVICE_SERVICE_ENTRY_POINTS;
86 typedef DEVICE_SERVICE_ENTRY_POINTS* PDEVICE_SERVICE_ENTRY_POINTS;
88 typedef int (*PDEVICE_SERVICE_ENTRY)(PDEVICE_SERVICE_ENTRY_POINTS);
90 #endif /* __RDPDR_TYPES_H */