1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

64860 Commits

Author SHA1 Message Date
Simo Sorce
849cc65654 s3-smbd: Migrated to new spoolss functions for printing.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Simo Sorce
660506d359 s3-printing: Handled case when smbd spools a file on behalf of spoolss. 2010-07-27 10:27:13 -04:00
Simo Sorce
94ee35f9cc s3-printing: Made print_job_start more robust.
Explicitly return ntstatus errors instead of relying on elusive errno.
Split the function to make it easier to follow.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
4761498c9e s3-printing: Moved remaining prototypes to nt_printing.h.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
7c629bda2f s3-printing: Remove unused printer registry key functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:13 -04:00
Andreas Schneider
ae405eed4f s3-printing: Removed unused security descriptor functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
e2d3c0efa9 s3-printing: Removed unused nt_forms.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
c918cfdede s3-printing: Removed unsuded c_setprinter functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
d8ab3e52dc s3-printing: Removed unused free_a_printer function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
5c1f283747 s3-printing: Removed unused mod_a_printer functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
4e45d5f824 s3-printing: Removed unused get_a_printer functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Simo Sorce
38d6274864 s3-smbd: Added code to print via spoolss. 2010-07-27 10:27:12 -04:00
Andreas Schneider
8d44b11c6b s3-spoolss: Removed wrong comment.
This doesn't reflect the current implementation.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:12 -04:00
Andreas Schneider
f6db3694ed s3-spoolss: Moved shared printing functions to nt_printing.h
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
395dcbd111 s3-spoolss: Removed the last free_a_printer() call in spoolss_nt.c.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Simo Sorce
c26bfd228d s3-spoolss: Removed unused set_printer_dataex().
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
6d6ce4d1ad s3-spoolss: Create and update DsSpooler values. 2010-07-27 10:27:11 -04:00
Andreas Schneider
3fe2f6443d s3-spoolss: Use a temporary talloc context in update_printer.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
c52e019ae1 s3-spoolss: Use the existing memory context for winreg_get_printer.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
c7ae6cb046 s3-spoolss: Don't return the printer devicemode in spoolss_EnumJobs.
Jobs have their own DeviceMode, see print_job_devmode().

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:11 -04:00
Andreas Schneider
48828ab154 s3-spoolss: Fixed the driver unc strings for dependent files.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
a1fe2ed68a s3-spoolss: Use winreg_delete_printer_key to delete printers.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
fdf669d377 s3-spoolss: Get rid of get_server_name.
This function was useless the structure is public and used everywhere.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
44bc6714b0 s3-printing: Converted printer publishing functions.
Use spoolss_PrintInfo2 and winreg calls.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
d17d73f4be s3-printing: Convert print_driver_in_use.
Use spoolss_PrintInfo2 and winreg calls.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
017a305fed s3-printing: Convert print_time_access_check.
use spoolss_PrintInfo2 and winreg calls

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:10 -04:00
Simo Sorce
afc4a38762 s3-spoolss: Use spoolss_PrinterInfo2 in notify code. 2010-07-27 10:27:10 -04:00
Simo Sorce
78b985ac3e s3-spoolss: Convert do_drv_upgrade_printer() to winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Simo Sorce
375bdfc7f8 s3-spoolss: Removed construct_dev_mode() function.
Replace it with spoolss_create_default_devmode() or
copy_devicemode() where needed.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Simo Sorce
0d694e1261 s3-spoolss: Use spoolss_PrinterInfo2 in construct_printer_driver_info_level.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Simo Sorce
7f6f5806ff s3-spoolss: Use spoolss_PrinterInfo2 for job info.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Simo Sorce
52b8f1f471 s3-spoolss: Migrated driver functions to winreg.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Andreas Schneider
e517588a20 s3-spoolss: Set c_setprinter always to 0.
This value is only used for the well known printers list which Samba
doesn't implement.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Andreas Schneider
90e96d3ee2 s3-spoolss: Migrated spoolss_DeletePrinter to cleanup winreg keys.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:09 -04:00
Andreas Schneider
be6dc65b9e s3-spoolss: Migrated spoolss_GetPrinter and spoolss_EnumPrinters to winreg_update_printer.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
a2c51a88cc s3-spoolss: Migrated spoolss_OpenPrinter to create defaults with winreg_create_printer.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
653364f5a3 s3-spoolss: Removed unused function printer_info2_to_nt_printer_info2().
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
665eba334e s3-spoolss: Removed unused function convert_printer_info().
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
e2c9ad93cb s3-spoolss: Migrated spoolss_AddPrinter and spoolss_SetPrinter.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
2a5dba5555 s3-spoolss: Migrated spoolss_Forms to use the winreg changeid function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
67bdaa5616 s3-spoolss: Migrated spoolss_GetForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
a879bba0ac s3-spoolss: Migrated spoolss_SetForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:08 -04:00
Andreas Schneider
76f72fe515 s3-spoolss: Migrated spoolss_DeleteForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
fad361aa8a s3-spoolss: Migrated spoolss_AddForm to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
2ae1796b09 s3-spoolss: Migrated spoolss_EnumForms to the winreg function.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
142431d097 s3-spoolss: Migrated spoolss_DeletePrinterKey to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
fb5529f623 s3-spoolss: Migrated spoolss_DeletePrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
e210230587 s3-spoolss: Migrated spoolss_EnumPrinterKey to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
df35b343db s3-spoolss: Migrated spoolss_EnumPrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:07 -04:00
Andreas Schneider
795618a592 s3-spoolss: Migrated spoolss_GetPrinterDataEx to the winreg functions.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00