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

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

revision 434 by matthewc, Tue Jul 1 09:31:25 2003 UTC revision 435 by astrand, Wed Jul 9 09:18:20 2003 UTC
# Line 3  Line 3 
3  FILE *printer_fp;  FILE *printer_fp;
4    
5  static NTSTATUS  static NTSTATUS
6  printer_create(HANDLE *handle)  printer_create(HANDLE * handle)
7  {  {
8          printer_fp = popen("lpr", "w");          printer_fp = popen("lpr", "w");
9          *handle = 0;          *handle = 0;
# Line 18  printer_close(HANDLE handle) Line 18  printer_close(HANDLE handle)
18  }  }
19    
20  static NTSTATUS  static NTSTATUS
21  printer_write(HANDLE handle, uint8 *data, uint32 length, uint32 *result)  printer_write(HANDLE handle, uint8 * data, uint32 length, uint32 * result)
22  {  {
23          *result = fwrite(data, 1, length, printer_fp);          *result = fwrite(data, 1, length, printer_fp);
24          return STATUS_SUCCESS;          return STATUS_SUCCESS;
25  }  }
26    
27  DEVICE_FNS printer_fns =  DEVICE_FNS printer_fns = {
 {  
28          printer_create,          printer_create,
29          printer_close,          printer_close,
30          NULL, /* read */          NULL,                   /* read */
31          printer_write,          printer_write,
32          NULL /* device_control */          NULL                    /* device_control */
33  };  };
   

Legend:
Removed from v.434  
changed lines
  Added in v.435

  ViewVC Help
Powered by ViewVC 1.1.26