diff options
author | Günther Deschner <gd@samba.org> | 2009-04-10 00:01:41 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-10 01:06:55 +0200 |
commit | e4b4a07357920756f5bf0ca991ec8f4b38dc7968 (patch) | |
tree | 2ccc11d287ff19abf0fb07d5f33eb30d55c87696 | |
parent | 7065b2b2ad604a3faf8df0e123e04ed7f532afda (diff) | |
download | samba-e4b4a07357920756f5bf0ca991ec8f4b38dc7968.tar.gz samba-e4b4a07357920756f5bf0ca991ec8f4b38dc7968.tar.bz2 samba-e4b4a07357920756f5bf0ca991ec8f4b38dc7968.zip |
s3: re-run make samba3-idl.
Guenther
-rw-r--r-- | librpc/gen_ndr/ndr_ntsvcs.c | 43 | ||||
-rw-r--r-- | librpc/gen_ndr/ndr_ntsvcs.h | 1 | ||||
-rw-r--r-- | librpc/gen_ndr/ntsvcs.h | 13 |
3 files changed, 51 insertions, 6 deletions
diff --git a/librpc/gen_ndr/ndr_ntsvcs.c b/librpc/gen_ndr/ndr_ntsvcs.c index ef2ecc1d7d..d317c9f325 100644 --- a/librpc/gen_ndr/ndr_ntsvcs.c +++ b/librpc/gen_ndr/ndr_ntsvcs.c @@ -4,6 +4,37 @@ #include "../librpc/gen_ndr/ndr_ntsvcs.h" #include "librpc/gen_ndr/ndr_winreg.h" +static enum ndr_err_code ndr_push_PNP_GetIdListFlags(struct ndr_push *ndr, int ndr_flags, uint32_t r) +{ + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r)); + return NDR_ERR_SUCCESS; +} + +static enum ndr_err_code ndr_pull_PNP_GetIdListFlags(struct ndr_pull *ndr, int ndr_flags, uint32_t *r) +{ + uint32_t v; + NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &v)); + *r = v; + return NDR_ERR_SUCCESS; +} + +_PUBLIC_ void ndr_print_PNP_GetIdListFlags(struct ndr_print *ndr, const char *name, uint32_t r) +{ + ndr_print_uint32(ndr, name, r); + ndr->depth++; + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_ENUMERATOR", CM_GETIDLIST_FILTER_ENUMERATOR, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_SERVICE", CM_GETIDLIST_FILTER_SERVICE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_EJECTRELATIONS", CM_GETIDLIST_FILTER_EJECTRELATIONS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_REMOVALRELATIONS", CM_GETIDLIST_FILTER_REMOVALRELATIONS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_POWERRELATIONS", CM_GETIDLIST_FILTER_POWERRELATIONS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_BUSRELATIONS", CM_GETIDLIST_FILTER_BUSRELATIONS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_DONOTGENERATE", CM_GETIDLIST_DONOTGENERATE, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_TRANSPORTRELATIONS", CM_GETIDLIST_FILTER_TRANSPORTRELATIONS, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_PRESENT", CM_GETIDLIST_FILTER_PRESENT, r); + ndr_print_bitmap_flag(ndr, sizeof(uint32_t), "CM_GETIDLIST_FILTER_CLASS", CM_GETIDLIST_FILTER_CLASS, r); + ndr->depth--; +} + static enum ndr_err_code ndr_push_PNP_HwProfInfo(struct ndr_push *ndr, int ndr_flags, const struct PNP_HwProfInfo *r) { uint32_t cntr_friendly_name_0; @@ -522,7 +553,7 @@ static enum ndr_err_code ndr_push_PNP_GetDeviceList(struct ndr_push *ndr, int fl return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer"); } NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, *r->in.length)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags)); + NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr, NDR_SCALARS, r->in.flags)); } if (flags & NDR_OUT) { if (r->out.buffer == NULL) { @@ -578,7 +609,7 @@ static enum ndr_err_code ndr_pull_PNP_GetDeviceList(struct ndr_pull *ndr, int fl NDR_PULL_SET_MEM_CTX(ndr, r->in.length, LIBNDR_FLAG_REF_ALLOC); NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, r->in.length)); NDR_PULL_SET_MEM_CTX(ndr, _mem_save_length_0, LIBNDR_FLAG_REF_ALLOC); - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags)); + NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr, NDR_SCALARS, &r->in.flags)); NDR_PULL_ALLOC_N(ndr, r->out.buffer, *r->in.length); memset(r->out.buffer, 0, (*r->in.length) * sizeof(*r->out.buffer)); NDR_PULL_ALLOC(ndr, r->out.length); @@ -638,7 +669,7 @@ _PUBLIC_ void ndr_print_PNP_GetDeviceList(struct ndr_print *ndr, const char *nam ndr->depth++; ndr_print_uint32(ndr, "length", *r->in.length); ndr->depth--; - ndr_print_uint32(ndr, "flags", r->in.flags); + ndr_print_PNP_GetIdListFlags(ndr, "flags", r->in.flags); ndr->depth--; } if (flags & NDR_OUT) { @@ -677,7 +708,7 @@ static enum ndr_err_code ndr_push_PNP_GetDeviceListSize(struct ndr_push *ndr, in NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, ndr_charset_length(r->in.devicename, CH_UTF16))); NDR_CHECK(ndr_push_charset(ndr, NDR_SCALARS, r->in.devicename, ndr_charset_length(r->in.devicename, CH_UTF16), sizeof(uint16_t), CH_UTF16)); } - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->in.flags)); + NDR_CHECK(ndr_push_PNP_GetIdListFlags(ndr, NDR_SCALARS, r->in.flags)); } if (flags & NDR_OUT) { if (r->out.size == NULL) { @@ -715,7 +746,7 @@ static enum ndr_err_code ndr_pull_PNP_GetDeviceListSize(struct ndr_pull *ndr, in NDR_CHECK(ndr_pull_charset(ndr, NDR_SCALARS, &r->in.devicename, ndr_get_array_length(ndr, &r->in.devicename), sizeof(uint16_t), CH_UTF16)); NDR_PULL_SET_MEM_CTX(ndr, _mem_save_devicename_0, 0); } - NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->in.flags)); + NDR_CHECK(ndr_pull_PNP_GetIdListFlags(ndr, NDR_SCALARS, &r->in.flags)); NDR_PULL_ALLOC(ndr, r->out.size); ZERO_STRUCTP(r->out.size); } @@ -748,7 +779,7 @@ _PUBLIC_ void ndr_print_PNP_GetDeviceListSize(struct ndr_print *ndr, const char ndr_print_string(ndr, "devicename", r->in.devicename); } ndr->depth--; - ndr_print_uint32(ndr, "flags", r->in.flags); + ndr_print_PNP_GetIdListFlags(ndr, "flags", r->in.flags); ndr->depth--; } if (flags & NDR_OUT) { diff --git a/librpc/gen_ndr/ndr_ntsvcs.h b/librpc/gen_ndr/ndr_ntsvcs.h index b70c383678..a5ad373a71 100644 --- a/librpc/gen_ndr/ndr_ntsvcs.h +++ b/librpc/gen_ndr/ndr_ntsvcs.h @@ -142,6 +142,7 @@ extern const struct ndr_interface_table ndr_table_ntsvcs; #define NDR_PNP_GETSERVERSIDEDEVICEINSTALLFLAGS (0x40) #define NDR_NTSVCS_CALL_COUNT (65) +void ndr_print_PNP_GetIdListFlags(struct ndr_print *ndr, const char *name, uint32_t r); void ndr_print_PNP_HwProfInfo(struct ndr_print *ndr, const char *name, const struct PNP_HwProfInfo *r); void ndr_print_PNP_Disconnect(struct ndr_print *ndr, const char *name, int flags, const struct PNP_Disconnect *r); void ndr_print_PNP_Connect(struct ndr_print *ndr, const char *name, int flags, const struct PNP_Connect *r); diff --git a/librpc/gen_ndr/ntsvcs.h b/librpc/gen_ndr/ntsvcs.h index 804c452816..f59fcae2e7 100644 --- a/librpc/gen_ndr/ntsvcs.h +++ b/librpc/gen_ndr/ntsvcs.h @@ -8,7 +8,20 @@ #ifndef _HEADER_ntsvcs #define _HEADER_ntsvcs +#define CM_GETIDLIST_FILTER_NONE ( 0x00000000 ) #define DEV_REGPROP_DESC ( 1 ) +/* bitmap PNP_GetIdListFlags */ +#define CM_GETIDLIST_FILTER_ENUMERATOR ( 0x00000001 ) +#define CM_GETIDLIST_FILTER_SERVICE ( 0x00000002 ) +#define CM_GETIDLIST_FILTER_EJECTRELATIONS ( 0x00000004 ) +#define CM_GETIDLIST_FILTER_REMOVALRELATIONS ( 0x00000008 ) +#define CM_GETIDLIST_FILTER_POWERRELATIONS ( 0x00000010 ) +#define CM_GETIDLIST_FILTER_BUSRELATIONS ( 0x00000020 ) +#define CM_GETIDLIST_DONOTGENERATE ( 0x10000040 ) +#define CM_GETIDLIST_FILTER_TRANSPORTRELATIONS ( 0x00000080 ) +#define CM_GETIDLIST_FILTER_PRESENT ( 0x00000100 ) +#define CM_GETIDLIST_FILTER_CLASS ( 0x00000200 ) + struct PNP_HwProfInfo { uint32_t profile_handle; uint16_t friendly_name[80]; |