From 7403dd39d608e07f107530819277738ebd20a320 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 12 May 2009 14:12:31 +0200 Subject: [PATCH] s3-spoolss: move SPL_ARCH_X defines to IDL. Guenther --- librpc/gen_ndr/spoolss.h | 8 ++++++++ librpc/idl/spoolss.idl | 8 ++++++++ source3/printing/nt_printing.c | 8 -------- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/librpc/gen_ndr/spoolss.h b/librpc/gen_ndr/spoolss.h index abd8300d0e5..a9f7aaf1e41 100644 --- a/librpc/gen_ndr/spoolss.h +++ b/librpc/gen_ndr/spoolss.h @@ -13,6 +13,14 @@ #define PRINTER_STATUS_OK ( 0x00000000 ) #define JOB_STATUS_QUEUED ( 0x0000 ) #define PRINTER_ENUM_ICONMASK ( (PRINTER_ENUM_ICON1|PRINTER_ENUM_ICON2|PRINTER_ENUM_ICON3|PRINTER_ENUM_ICON4|PRINTER_ENUM_ICON5|PRINTER_ENUM_ICON6|PRINTER_ENUM_ICON7|PRINTER_ENUM_ICON8) ) +#define SPL_ARCH_WIN40 ( "WIN40" ) +#define SPL_ARCH_W32X86 ( "W32X86" ) +#define SPL_ARCH_W32MIPS ( "W32MIPS" ) +#define SPL_ARCH_W32ALPHA ( "W32ALPHA" ) +#define SPL_ARCH_W32PPC ( "W32PPC" ) +#define SPL_ARCH_IA64 ( "IA64" ) +#define SPL_ARCH_X64 ( "x64" ) +#define SPOOLSS_ARCHITECTURE_ALL ( "all" ) #define SPOOLSS_ARCHITECTURE_NT_X86 ( "Windows NT x86" ) #define SPOOLSS_DEFAULT_SERVER_PATH ( "C:\\WINDOWS\\system32\\spool" ) #define SPL_LOCAL_PORT ( "Local Port" ) diff --git a/librpc/idl/spoolss.idl b/librpc/idl/spoolss.idl index a8fd9d83651..f3064625a85 100644 --- a/librpc/idl/spoolss.idl +++ b/librpc/idl/spoolss.idl @@ -1284,6 +1284,14 @@ import "misc.idl", "security.idl", "winreg.idl"; /******************/ /* Function: 0x1a */ + const string SPL_ARCH_WIN40 = "WIN40"; + const string SPL_ARCH_W32X86 = "W32X86"; + const string SPL_ARCH_W32MIPS = "W32MIPS"; + const string SPL_ARCH_W32ALPHA = "W32ALPHA"; + const string SPL_ARCH_W32PPC = "W32PPC"; + const string SPL_ARCH_IA64 = "IA64"; + const string SPL_ARCH_X64 = "x64"; + const string SPOOLSS_ARCHITECTURE_ALL = "all"; const string SPOOLSS_ARCHITECTURE_NT_X86 = "Windows NT x86"; const string SPOOLSS_DEFAULT_SERVER_PATH = "C:\\WINDOWS\\system32\\spool"; diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index b6e7032ab80..17e3d40152a 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -210,14 +210,6 @@ struct table_node { int version; }; -#define SPL_ARCH_WIN40 "WIN40" -#define SPL_ARCH_W32X86 "W32X86" -#define SPL_ARCH_W32MIPS "W32MIPS" -#define SPL_ARCH_W32ALPHA "W32ALPHA" -#define SPL_ARCH_W32PPC "W32PPC" -#define SPL_ARCH_IA64 "IA64" -#define SPL_ARCH_X64 "x64" - static const struct table_node archi_table[]= { {"Windows 4.0", SPL_ARCH_WIN40, 0 }, -- 2.11.4.GIT