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

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

revision 622 by n-ki, Thu Mar 4 08:01:07 2004 UTC revision 686 by stargo, Thu Apr 29 19:41:49 2004 UTC
# Line 73  Line 73 
73  #define SERIAL_EV_EVENT1           0x0800       // Provider specific event 1  #define SERIAL_EV_EVENT1           0x0800       // Provider specific event 1
74  #define SERIAL_EV_EVENT2           0x1000       // Provider specific event 2  #define SERIAL_EV_EVENT2           0x1000       // Provider specific event 2
75    
76    #ifndef CRTSCTS
77    #define CRTSCTS 0
78    #endif
79    
80    
81  extern RDPDR_DEVICE g_rdpdr_device[];  extern RDPDR_DEVICE g_rdpdr_device[];
82    
83  SERIAL_DEVICE *  static SERIAL_DEVICE *
84  get_serial_info(HANDLE handle)  get_serial_info(HANDLE handle)
85  {  {
86          int index;          int index;
# Line 89  get_serial_info(HANDLE handle) Line 93  get_serial_info(HANDLE handle)
93          return NULL;          return NULL;
94  }  }
95    
96  BOOL  static BOOL
97  get_termios(SERIAL_DEVICE * pser_inf, HANDLE serial_fd)  get_termios(SERIAL_DEVICE * pser_inf, HANDLE serial_fd)
98  {  {
99          speed_t speed;          speed_t speed;
# Line 392  serial_enum_devices(uint32 * id, char *o Line 396  serial_enum_devices(uint32 * id, char *o
396          return count;          return count;
397  }  }
398    
399  NTSTATUS  static NTSTATUS
400  serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition,  serial_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition,
401                uint32 flags_and_attributes, char *filename, HANDLE * handle)                uint32 flags_and_attributes, char *filename, HANDLE * handle)
402  {  {
# Line 452  serial_close(HANDLE handle) Line 456  serial_close(HANDLE handle)
456          return STATUS_SUCCESS;          return STATUS_SUCCESS;
457  }  }
458    
459  NTSTATUS  static NTSTATUS
460  serial_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  serial_read(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
461  {  {
462          long timeout;          long timeout;
# Line 499  serial_read(HANDLE handle, uint8 * data, Line 503  serial_read(HANDLE handle, uint8 * data,
503          return STATUS_SUCCESS;          return STATUS_SUCCESS;
504  }  }
505    
506  NTSTATUS  static NTSTATUS
507  serial_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)  serial_write(HANDLE handle, uint8 * data, uint32 length, uint32 offset, uint32 * result)
508  {  {
509          *result = write(handle, data, length);          *result = write(handle, data, length);
# Line 509  serial_write(HANDLE handle, uint8 * data Line 513  serial_write(HANDLE handle, uint8 * data
513  static NTSTATUS  static NTSTATUS
514  serial_device_control(HANDLE handle, uint32 request, STREAM in, STREAM out)  serial_device_control(HANDLE handle, uint32 request, STREAM in, STREAM out)
515  {  {
516    #if 0
517          int flush_mask, purge_mask;          int flush_mask, purge_mask;
518    #endif
519          uint32 result;          uint32 result;
520          uint8 immediate;          uint8 immediate;
521          SERIAL_DEVICE *pser_inf;          SERIAL_DEVICE *pser_inf;

Legend:
Removed from v.622  
changed lines
  Added in v.686

  ViewVC Help
Powered by ViewVC 1.1.26