/[rdesktop]/sourceforge.net/trunk/rdesktop/parallel.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/parallel.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 775 by astrand, Sat Apr 17 07:14:41 2004 UTC revision 776 by jsorg71, Sat Oct 2 01:30:33 2004 UTC
# Line 19  extern int errno; Line 19  extern int errno;
19  extern RDPDR_DEVICE g_rdpdr_device[];  extern RDPDR_DEVICE g_rdpdr_device[];
20    
21  static PARALLEL_DEVICE *  static PARALLEL_DEVICE *
22  get_parallel_data(HANDLE handle)  get_parallel_data(NTHANDLE handle)
23  {  {
24          int index;          int index;
25    
# Line 74  parallel_enum_devices(uint32 * id, char Line 74  parallel_enum_devices(uint32 * id, char
74    
75  static NTSTATUS  static NTSTATUS
76  parallel_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition,  parallel_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition,
77                  uint32 flags, char *filename, HANDLE * handle)                  uint32 flags, char *filename, NTHANDLE * handle)
78  {  {
79          int parallel_fd;          int parallel_fd;
80    
# Line 102  parallel_create(uint32 device_id, uint32 Line 102  parallel_create(uint32 device_id, uint32
102  }  }
103    
104  static NTSTATUS  static NTSTATUS
105  parallel_close(HANDLE handle)  parallel_close(NTHANDLE handle)
106  {  {
107          int i = get_device_index(handle);          int i = get_device_index(handle);
108          if (i >= 0)          if (i >= 0)
# Line 112  parallel_close(HANDLE handle) Line 112  parallel_close(HANDLE handle)
112  }  }
113    
114  static NTSTATUS  static NTSTATUS
115  parallel_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  parallel_read(NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
116  {  {
117          *result = read(handle, data, length);          *result = read(handle, data, length);
118          return STATUS_SUCCESS;          return STATUS_SUCCESS;
119  }  }
120    
121  static NTSTATUS  static NTSTATUS
122  parallel_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  parallel_write(NTHANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
123  {  {
124          int rc = STATUS_SUCCESS;          int rc = STATUS_SUCCESS;
125    
# Line 153  parallel_write(HANDLE handle, uint8 * da Line 153  parallel_write(HANDLE handle, uint8 * da
153  }  }
154    
155  static NTSTATUS  static NTSTATUS
156  parallel_device_control(HANDLE handle, uint32 request, STREAM in, STREAM out)  parallel_device_control(NTHANDLE handle, uint32 request, STREAM in, STREAM out)
157  {  {
158          if ((request >> 16) != FILE_DEVICE_PARALLEL)          if ((request >> 16) != FILE_DEVICE_PARALLEL)
159                  return STATUS_INVALID_PARAMETER;                  return STATUS_INVALID_PARAMETER;

Legend:
Removed from v.775  
changed lines
  Added in v.776

  ViewVC Help
Powered by ViewVC 1.1.26