/[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 831 by jsorg71, Sat Oct 2 01:30:33 2004 UTC revision 832 by stargo, Tue Mar 8 01:01:47 2005 UTC
# Line 18  extern int errno; Line 18  extern int errno;
18    
19  extern RDPDR_DEVICE g_rdpdr_device[];  extern RDPDR_DEVICE g_rdpdr_device[];
20    
 static PARALLEL_DEVICE *  
 get_parallel_data(NTHANDLE handle)  
 {  
         int index;  
   
         for (index = 0; index < RDPDR_MAX_DEVICES; index++)  
         {  
                 if (handle == g_rdpdr_device[index].handle)  
                         return (PARALLEL_DEVICE *) g_rdpdr_device[index].pdevice_data;  
         }  
         return NULL;  
 }  
   
21    
22  /* Enumeration of devices from rdesktop.c        */  /* Enumeration of devices from rdesktop.c        */
23  /* returns numer of units found and initialized. */  /* returns numer of units found and initialized. */
# Line 126  parallel_write(NTHANDLE handle, uint8 * Line 113  parallel_write(NTHANDLE handle, uint8 *
113          int n = write(handle, data, length);          int n = write(handle, data, length);
114          if (n < 0)          if (n < 0)
115          {          {
116    #if defined(LPGETSTATUS)
117                  int status;                  int status;
118    #endif
119    
120                  *result = 0;                  *result = 0;
121                  switch (errno)                  switch (errno)

Legend:
Removed from v.831  
changed lines
  Added in v.832

  ViewVC Help
Powered by ViewVC 1.1.26