--- sourceforge.net/trunk/rdesktop/types.h 2003/06/06 11:08:15 413 +++ sourceforge.net/trunk/rdesktop/types.h 2003/07/01 09:31:25 432 @@ -109,12 +109,27 @@ } key_translation; -struct _cliprdr_dataformat; +typedef struct _VCHANNEL +{ + uint16 mcs_id; + char name[8]; + uint32 flags; + struct stream in; + void (*process) (STREAM); +} +VCHANNEL; -typedef struct _cliprdr_dataformat +/* RDPDR */ +typedef uint32 NTSTATUS; +typedef uint32 HANDLE; + +typedef struct _DEVICE_FNS { - uint32 identifier; - uint8 textual_description[32]; - struct _cliprdr_dataformat *next; + NTSTATUS (*create)(HANDLE *handle); + NTSTATUS (*close)(HANDLE handle); + NTSTATUS (*read)(HANDLE handle, uint8 *data, uint32 length, uint32 *result); + NTSTATUS (*write)(HANDLE handle, uint8 *data, uint32 length, uint32 *result); + NTSTATUS (*device_control)(HANDLE handle, uint32 request, STREAM in, STREAM out); } -cliprdr_dataformat; +DEVICE_FNS; +