/[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 582 by n-ki, Fri Jan 23 14:37:51 2004 UTC revision 608 by astrand, Sun Feb 15 21:19:28 2004 UTC
# Line 1  Line 1 
 #define MAX_PRINTERS    5  
   
1  #include "rdesktop.h"  #include "rdesktop.h"
2    
3  extern RDPDR_DEVICE g_rdpdr_device[];  extern RDPDR_DEVICE g_rdpdr_device[];
# Line 18  get_printer_data(HANDLE handle) Line 16  get_printer_data(HANDLE handle)
16  }  }
17    
18  int  int
19  printer_enum_devices(int *id, char *optarg)  printer_enum_devices(uint32 * id, char *optarg)
20  {  {
21          PRINTER *pprinter_data;          PRINTER *pprinter_data;
22    
# Line 46  printer_enum_devices(int *id, char *opta Line 44  printer_enum_devices(int *id, char *opta
44                  pprinter_data = (PRINTER *) xmalloc(sizeof(PRINTER));                  pprinter_data = (PRINTER *) xmalloc(sizeof(PRINTER));
45    
46                  strcpy(g_rdpdr_device[*id].name, "PRN");                  strcpy(g_rdpdr_device[*id].name, "PRN");
47                  strcat(g_rdpdr_device[*id].name, ltoa(already + count + 1, 10));                  strcat(g_rdpdr_device[*id].name, l_to_a(already + count + 1, 10));
48    
49                  /* first printer is set as default printer */                  /* first printer is set as default printer */
50                  if ((already + count) == 0)                  if ((already + count) == 0)

Legend:
Removed from v.582  
changed lines
  Added in v.608

  ViewVC Help
Powered by ViewVC 1.1.26