/[rdesktop]/jpeg/rdesktop/trunk/serial.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 /jpeg/rdesktop/trunk/serial.c

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

revision 664 by n-ki, Thu Mar 4 08:01:07 2004 UTC revision 665 by astrand, Sat Apr 17 07:24:22 2004 UTC
# Line 76  Line 76 
76    
77  extern RDPDR_DEVICE g_rdpdr_device[];  extern RDPDR_DEVICE g_rdpdr_device[];
78    
79  SERIAL_DEVICE *  static SERIAL_DEVICE *
80  get_serial_info(HANDLE handle)  get_serial_info(HANDLE handle)
81  {  {
82          int index;          int index;
# Line 89  get_serial_info(HANDLE handle) Line 89  get_serial_info(HANDLE handle)
89          return NULL;          return NULL;
90  }  }
91    
92  BOOL  static BOOL
93  get_termios(SERIAL_DEVICE * pser_inf, HANDLE serial_fd)  get_termios(SERIAL_DEVICE * pser_inf, HANDLE serial_fd)
94  {  {
95          speed_t speed;          speed_t speed;
# Line 392  serial_enum_devices(uint32 * id, char *o Line 392  serial_enum_devices(uint32 * id, char *o
392          return count;          return count;
393  }  }
394    
395  NTSTATUS  static NTSTATUS
396  serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition,  serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition,
397                uint32 flags_and_attributes, char *filename, HANDLE * handle)                uint32 flags_and_attributes, char *filename, HANDLE * handle)
398  {  {
# Line 452  serial_close(HANDLE handle) Line 452  serial_close(HANDLE handle)
452          return STATUS_SUCCESS;          return STATUS_SUCCESS;
453  }  }
454    
455  NTSTATUS  static NTSTATUS
456  serial_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  serial_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
457  {  {
458          long timeout;          long timeout;
# Line 499  serial_read(HANDLE handle, uint8 * data, Line 499  serial_read(HANDLE handle, uint8 * data,
499          return STATUS_SUCCESS;          return STATUS_SUCCESS;
500  }  }
501    
502  NTSTATUS  static NTSTATUS
503  serial_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  serial_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
504  {  {
505          *result = write(handle, data, length);          *result = write(handle, data, length);

Legend:
Removed from v.664  
changed lines
  Added in v.665

  ViewVC Help
Powered by ViewVC 1.1.26