/[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 669 by astrand, Sun Apr 18 19:16:51 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);
# Line 509  serial_write(HANDLE handle, uint8 * data Line 509  serial_write(HANDLE handle, uint8 * data
509  static NTSTATUS  static NTSTATUS
510  serial_device_control(HANDLE handle, uint32 request, STREAM in, STREAM out)  serial_device_control(HANDLE handle, uint32 request, STREAM in, STREAM out)
511  {  {
512    #if 0
513          int flush_mask, purge_mask;          int flush_mask, purge_mask;
514    #endif
515          uint32 result;          uint32 result;
516          uint8 immediate;          uint8 immediate;
517          SERIAL_DEVICE *pser_inf;          SERIAL_DEVICE *pser_inf;

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

  ViewVC Help
Powered by ViewVC 1.1.26