s3-spoolss: implement enumprinters_level5.
authorGünther Deschner <gd@samba.org>
Fri, 20 Mar 2009 14:49:57 +0000 (15:49 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 20 Mar 2009 16:20:33 +0000 (17:20 +0100)
Guenther

source3/rpc_server/srv_spoolss_nt.c

index 61d4e69506e56ec92f57c3b59f8d8e611ee2763a..ebb5ec46714e7db1fa417a99bd13c38760ace4f7 100644 (file)
@@ -4253,6 +4253,11 @@ static WERROR enum_all_printers_info_level(TALLOC_CTX *mem_ctx,
                        result = construct_printer_info2(info, ntprinter,
                                                         &info[count].info2, snum);
                        break;
+               case 5:
+                       result = construct_printer_info5(info, ntprinter,
+                                                        &info[count].info5, snum);
+                       break;
+
                default:
                        result = WERR_UNKNOWN_LEVEL;
                        free_a_printer(&ntprinter, 2);
@@ -4444,8 +4449,9 @@ static WERROR enumprinters_level5(TALLOC_CTX *mem_ctx,
                                  union spoolss_PrinterInfo **info,
                                  uint32_t *count)
 {
-/*     return enum_all_printers_info_5(mem_ctx, info, offered, needed, count);*/
-       return WERR_OK;
+       DEBUG(4,("enum_all_printers_info_5\n"));
+
+       return enum_all_printers_info_level(mem_ctx, 5, flags, info, count);
 }
 
 /****************************************************************