mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
spoolss: move up enum spoolss_Build in the IDL.
Guenther
This commit is contained in:
parent
2033314a7c
commit
7277668128
@ -308,6 +308,31 @@ _PUBLIC_ void ndr_print_spoolss_JobStatus(struct ndr_print *ndr, const char *nam
|
||||
ndr->depth--;
|
||||
}
|
||||
|
||||
static enum ndr_err_code ndr_push_spoolss_Build(struct ndr_push *ndr, int ndr_flags, enum spoolss_Build r)
|
||||
{
|
||||
NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
static enum ndr_err_code ndr_pull_spoolss_Build(struct ndr_pull *ndr, int ndr_flags, enum spoolss_Build *r)
|
||||
{
|
||||
uint32_t v;
|
||||
NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
|
||||
*r = v;
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_spoolss_Build(struct ndr_print *ndr, const char *name, enum spoolss_Build r)
|
||||
{
|
||||
const char *val = NULL;
|
||||
|
||||
switch (r) {
|
||||
case SPOOLSS_DEBUGGING_BUILD: val = "SPOOLSS_DEBUGGING_BUILD"; break;
|
||||
case SPOOLSS_RELEASE_BUILD: val = "SPOOLSS_RELEASE_BUILD"; break;
|
||||
}
|
||||
ndr_print_enum(ndr, name, "ENUM", val, r);
|
||||
}
|
||||
|
||||
_PUBLIC_ enum ndr_err_code ndr_push_spoolss_PrinterInfo0(struct ndr_push *ndr, int ndr_flags, const struct spoolss_PrinterInfo0 *r)
|
||||
{
|
||||
if (ndr_flags & NDR_SCALARS) {
|
||||
@ -6810,31 +6835,6 @@ _PUBLIC_ void ndr_print_spoolss_PrinterControl(struct ndr_print *ndr, const char
|
||||
ndr_print_enum(ndr, name, "ENUM", val, r);
|
||||
}
|
||||
|
||||
static enum ndr_err_code ndr_push_spoolss_Build(struct ndr_push *ndr, int ndr_flags, enum spoolss_Build r)
|
||||
{
|
||||
NDR_CHECK(ndr_push_enum_uint32(ndr, NDR_SCALARS, r));
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
static enum ndr_err_code ndr_pull_spoolss_Build(struct ndr_pull *ndr, int ndr_flags, enum spoolss_Build *r)
|
||||
{
|
||||
uint32_t v;
|
||||
NDR_CHECK(ndr_pull_enum_uint32(ndr, NDR_SCALARS, &v));
|
||||
*r = v;
|
||||
return NDR_ERR_SUCCESS;
|
||||
}
|
||||
|
||||
_PUBLIC_ void ndr_print_spoolss_Build(struct ndr_print *ndr, const char *name, enum spoolss_Build r)
|
||||
{
|
||||
const char *val = NULL;
|
||||
|
||||
switch (r) {
|
||||
case SPOOLSS_DEBUGGING_BUILD: val = "SPOOLSS_DEBUGGING_BUILD"; break;
|
||||
case SPOOLSS_RELEASE_BUILD: val = "SPOOLSS_RELEASE_BUILD"; break;
|
||||
}
|
||||
ndr_print_enum(ndr, name, "ENUM", val, r);
|
||||
}
|
||||
|
||||
static enum ndr_err_code ndr_push_spoolss_SetPrinterInfo0(struct ndr_push *ndr, int ndr_flags, const struct spoolss_SetPrinterInfo0 *r)
|
||||
{
|
||||
if (ndr_flags & NDR_SCALARS) {
|
||||
|
@ -243,6 +243,7 @@ enum ndr_err_code ndr_push_spoolss_PrinterStatus(struct ndr_push *ndr, int ndr_f
|
||||
enum ndr_err_code ndr_pull_spoolss_PrinterStatus(struct ndr_pull *ndr, int ndr_flags, uint32_t *r);
|
||||
void ndr_print_spoolss_PrinterStatus(struct ndr_print *ndr, const char *name, uint32_t r);
|
||||
void ndr_print_spoolss_JobStatus(struct ndr_print *ndr, const char *name, uint32_t r);
|
||||
void ndr_print_spoolss_Build(struct ndr_print *ndr, const char *name, enum spoolss_Build r);
|
||||
enum ndr_err_code ndr_push_spoolss_PrinterInfo0(struct ndr_push *ndr, int ndr_flags, const struct spoolss_PrinterInfo0 *r);
|
||||
enum ndr_err_code ndr_pull_spoolss_PrinterInfo0(struct ndr_pull *ndr, int ndr_flags, struct spoolss_PrinterInfo0 *r);
|
||||
void ndr_print_spoolss_PrinterInfo0(struct ndr_print *ndr, const char *name, const struct spoolss_PrinterInfo0 *r);
|
||||
@ -347,7 +348,6 @@ void ndr_print_spoolss_SetJobInfo(struct ndr_print *ndr, const char *name, const
|
||||
void ndr_print_spoolss_JobInfoContainer(struct ndr_print *ndr, const char *name, const struct spoolss_JobInfoContainer *r);
|
||||
void ndr_print_spoolss_JobControl(struct ndr_print *ndr, const char *name, enum spoolss_JobControl r);
|
||||
void ndr_print_spoolss_PrinterControl(struct ndr_print *ndr, const char *name, enum spoolss_PrinterControl r);
|
||||
void ndr_print_spoolss_Build(struct ndr_print *ndr, const char *name, enum spoolss_Build r);
|
||||
void ndr_print_spoolss_SetPrinterInfo0(struct ndr_print *ndr, const char *name, const struct spoolss_SetPrinterInfo0 *r);
|
||||
void ndr_print_spoolss_SetPrinterInfo1(struct ndr_print *ndr, const char *name, const struct spoolss_SetPrinterInfo1 *r);
|
||||
void ndr_print_spoolss_SetPrinterInfo2(struct ndr_print *ndr, const char *name, const struct spoolss_SetPrinterInfo2 *r);
|
||||
|
@ -243,6 +243,19 @@ enum spoolss_MinorVersion
|
||||
#define JOB_STATUS_RESTART ( 0x00000800 )
|
||||
#define JOB_STATUS_COMPLETE ( 0x00001000 )
|
||||
|
||||
enum spoolss_Build
|
||||
#ifndef USE_UINT_ENUMS
|
||||
{
|
||||
SPOOLSS_DEBUGGING_BUILD=(int)(0x00000000),
|
||||
SPOOLSS_RELEASE_BUILD=(int)(0x00000001)
|
||||
}
|
||||
#else
|
||||
{ __donnot_use_enum_spoolss_Build=0x7FFFFFFF}
|
||||
#define SPOOLSS_DEBUGGING_BUILD ( 0x00000000 )
|
||||
#define SPOOLSS_RELEASE_BUILD ( 0x00000001 )
|
||||
#endif
|
||||
;
|
||||
|
||||
struct spoolss_PrinterInfo0 {
|
||||
const char * printername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
|
||||
const char * servername;/* [relative,flag(LIBNDR_FLAG_STR_NULLTERM)] */
|
||||
@ -1467,19 +1480,6 @@ enum spoolss_PrinterControl
|
||||
#endif
|
||||
;
|
||||
|
||||
enum spoolss_Build
|
||||
#ifndef USE_UINT_ENUMS
|
||||
{
|
||||
SPOOLSS_DEBUGGING_BUILD=(int)(0x00000000),
|
||||
SPOOLSS_RELEASE_BUILD=(int)(0x00000001)
|
||||
}
|
||||
#else
|
||||
{ __donnot_use_enum_spoolss_Build=0x7FFFFFFF}
|
||||
#define SPOOLSS_DEBUGGING_BUILD ( 0x00000000 )
|
||||
#define SPOOLSS_RELEASE_BUILD ( 0x00000001 )
|
||||
#endif
|
||||
;
|
||||
|
||||
struct spoolss_SetPrinterInfo0 {
|
||||
const char *servername;/* [unique,charset(UTF16)] */
|
||||
const char *printername;/* [unique,charset(UTF16)] */
|
||||
|
@ -119,6 +119,11 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor")
|
||||
JOB_STATUS_COMPLETE = 0x00001000
|
||||
} spoolss_JobStatus;
|
||||
|
||||
typedef [v1_enum] enum {
|
||||
SPOOLSS_DEBUGGING_BUILD = 0x00000000,
|
||||
SPOOLSS_RELEASE_BUILD = 0x00000001
|
||||
} spoolss_Build;
|
||||
|
||||
typedef [public,gensize] struct {
|
||||
[relative] nstring *printername;
|
||||
[relative] nstring *servername;
|
||||
@ -1146,11 +1151,6 @@ cpp_quote("#define spoolss_security_descriptor security_descriptor")
|
||||
SPOOLSS_PRINTER_CONTROL_SET_STATUS = 4
|
||||
} spoolss_PrinterControl;
|
||||
|
||||
typedef [v1_enum] enum {
|
||||
SPOOLSS_DEBUGGING_BUILD = 0x00000000,
|
||||
SPOOLSS_RELEASE_BUILD = 0x00000001
|
||||
} spoolss_Build;
|
||||
|
||||
typedef struct {
|
||||
[string,charset(UTF16)] uint16 *servername;
|
||||
[string,charset(UTF16)] uint16 *printername;
|
||||
|
Loading…
x
Reference in New Issue
Block a user