diff --git a/source3/include/nt_printing.h b/source3/include/nt_printing.h index f01ffe5b32f..e5391687556 100644 --- a/source3/include/nt_printing.h +++ b/source3/include/nt_printing.h @@ -191,4 +191,21 @@ void nt_printer_add(TALLOC_CTX *mem_ctx, struct messaging_context *msg_ctx, const char *printer); +/* The version int is used by getdrivers. Note that + all architecture strings that support mutliple + versions must be grouped together since enumdrivers + uses this property to prevent issuing multiple + enumdriver calls for the same arch */ +static const struct print_architecture_table_node archi_table[]= { + {SPOOLSS_ARCHITECTURE_4_0, SPL_ARCH_WIN40, 0 }, + {SPOOLSS_ARCHITECTURE_NT_X86, SPL_ARCH_W32X86, 2 }, + {SPOOLSS_ARCHITECTURE_NT_X86, SPL_ARCH_W32X86, 3 }, + {SPOOLSS_ARCHITECTURE_W32MIPS, SPL_ARCH_W32MIPS, 2 }, + {SPOOLSS_ARCHITECTURE_W32ALPHA, SPL_ARCH_W32ALPHA, 2 }, + {SPOOLSS_ARCHITECTURE_W32PPC, SPL_ARCH_W32PPC, 2 }, + {SPOOLSS_ARCHITECTURE_IA_64, SPL_ARCH_IA64, 3 }, + {SPOOLSS_ARCHITECTURE_x64, SPL_ARCH_X64, 3 }, + {NULL, "", -1 } +}; + #endif /* NT_PRINTING_H_ */ diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 2296b92b8b0..3654a4c9b7f 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -63,18 +63,6 @@ const struct generic_mapping job_generic_mapping = { JOB_ALL_ACCESS }; -static const struct print_architecture_table_node archi_table[]= { - - {"Windows 4.0", SPL_ARCH_WIN40, 0 }, - {"Windows NT x86", SPL_ARCH_W32X86, 2 }, - {"Windows NT R4000", SPL_ARCH_W32MIPS, 2 }, - {"Windows NT Alpha_AXP", SPL_ARCH_W32ALPHA, 2 }, - {"Windows NT PowerPC", SPL_ARCH_W32PPC, 2 }, - {"Windows IA64", SPL_ARCH_IA64, 3 }, - {"Windows x64", SPL_ARCH_X64, 3 }, - {NULL, "", -1 } -}; - static bool print_driver_directories_init(void) { int service, i; diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 0f2cfd7d690..e42926a97fa 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -2003,18 +2003,6 @@ WERROR _spoolss_DeletePrinter(struct pipes_struct *p, * long architecture string ******************************************************************/ -static const struct print_architecture_table_node archi_table[]= { - - {"Windows 4.0", SPL_ARCH_WIN40, 0 }, - {"Windows NT x86", SPL_ARCH_W32X86, 2 }, - {"Windows NT R4000", SPL_ARCH_W32MIPS, 2 }, - {"Windows NT Alpha_AXP", SPL_ARCH_W32ALPHA, 2 }, - {"Windows NT PowerPC", SPL_ARCH_W32PPC, 2 }, - {"Windows IA64", SPL_ARCH_IA64, 3 }, - {"Windows x64", SPL_ARCH_X64, 3 }, - {NULL, "", -1 } -}; - static const int drv_cversion[] = {SPOOLSS_DRIVER_VERSION_9X, SPOOLSS_DRIVER_VERSION_NT35, SPOOLSS_DRIVER_VERSION_NT4, diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c index 3b7abc665bd..1706cec4ddb 100644 --- a/source3/rpcclient/cmd_spoolss.c +++ b/source3/rpcclient/cmd_spoolss.c @@ -44,25 +44,6 @@ W_ERROR_HAVE_NO_MEMORY(_printername); \ } -/* The version int is used by getdrivers. Note that - all architecture strings that support mutliple - versions must be grouped together since enumdrivers - uses this property to prevent issuing multiple - enumdriver calls for the same arch */ - - -static const struct print_architecture_table_node archi_table[]= { - - {"Windows 4.0", "WIN40", 0 }, - {"Windows NT x86", "W32X86", 2 }, - {"Windows NT x86", "W32X86", 3 }, - {"Windows NT R4000", "W32MIPS", 2 }, - {"Windows NT Alpha_AXP", "W32ALPHA", 2 }, - {"Windows NT PowerPC", "W32PPC", 2 }, - {"Windows IA64", "IA64", 3 }, - {"Windows x64", "x64", 3 }, - {NULL, "", -1 } -}; /** * @file diff --git a/source3/utils/net_rpc_printer.c b/source3/utils/net_rpc_printer.c index 691ea821b5d..9b17395c16f 100644 --- a/source3/utils/net_rpc_printer.c +++ b/source3/utils/net_rpc_printer.c @@ -34,20 +34,6 @@ #include "auth/credentials/credentials.h" #include "lib/util/string_wrappers.h" -/* support itanium as well */ -static const struct print_architecture_table_node archi_table[]= { - - {"Windows 4.0", "WIN40", 0 }, - {"Windows NT x86", "W32X86", 2 }, - {"Windows NT x86", "W32X86", 3 }, - {"Windows NT R4000", "W32MIPS", 2 }, - {"Windows NT Alpha_AXP", "W32ALPHA", 2 }, - {"Windows NT PowerPC", "W32PPC", 2 }, - {"Windows IA64", "IA64", 3 }, - {"Windows x64", "x64", 3 }, - {NULL, "", -1 } -}; - /** * This display-printdriver-functions was borrowed from rpcclient/cmd_spoolss.c.