summaryrefslogtreecommitdiff
path: root/librpc/gen_ndr
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-22 11:42:45 +0200
committerGünther Deschner <gd@samba.org>2010-04-22 11:53:41 +0200
commit440075247d11a7852d8567753f426fa67f41d875 (patch)
treeaa53ac2578afb587da9639313db56fea8570eb77 /librpc/gen_ndr
parent404f7ac0292c91ef3101e9bc32b8aea3b2aec4be (diff)
downloadsamba-440075247d11a7852d8567753f426fa67f41d875.tar.gz
spoolss: pretty-print a struct spoolss_Time.
Guenther
Diffstat (limited to 'librpc/gen_ndr')
-rw-r--r--librpc/gen_ndr/ndr_spoolss.c15
-rw-r--r--librpc/gen_ndr/spoolss.h2
2 files changed, 1 insertions, 16 deletions
diff --git a/librpc/gen_ndr/ndr_spoolss.c b/librpc/gen_ndr/ndr_spoolss.c
index 552f8949475..cd036cf1cb8 100644
--- a/librpc/gen_ndr/ndr_spoolss.c
+++ b/librpc/gen_ndr/ndr_spoolss.c
@@ -44,21 +44,6 @@ static enum ndr_err_code ndr_pull_spoolss_Time(struct ndr_pull *ndr, int ndr_fla
return NDR_ERR_SUCCESS;
}
-_PUBLIC_ void ndr_print_spoolss_Time(struct ndr_print *ndr, const char *name, const struct spoolss_Time *r)
-{
- ndr_print_struct(ndr, name, "spoolss_Time");
- ndr->depth++;
- ndr_print_uint16(ndr, "year", r->year);
- ndr_print_uint16(ndr, "month", r->month);
- ndr_print_uint16(ndr, "day_of_week", r->day_of_week);
- ndr_print_uint16(ndr, "day", r->day);
- ndr_print_uint16(ndr, "hour", r->hour);
- ndr_print_uint16(ndr, "minute", r->minute);
- ndr_print_uint16(ndr, "second", r->second);
- ndr_print_uint16(ndr, "millisecond", r->millisecond);
- ndr->depth--;
-}
-
static size_t ndr_size_spoolss_Time(const struct spoolss_Time *r, struct smb_iconv_convenience *ic, int flags)
{
return ndr_size_struct(r, flags, (ndr_push_flags_fn_t)ndr_push_spoolss_Time, ic);
diff --git a/librpc/gen_ndr/spoolss.h b/librpc/gen_ndr/spoolss.h
index 9d6fb6dd82a..20572e97c47 100644
--- a/librpc/gen_ndr/spoolss.h
+++ b/librpc/gen_ndr/spoolss.h
@@ -126,7 +126,7 @@ struct spoolss_Time {
uint16_t minute;
uint16_t second;
uint16_t millisecond;
-}/* [gensize] */;
+}/* [noprint,gensize] */;
struct spoolss_TimeCtr {
uint32_t size;/* [value(ndr_size_spoolss_Time(time,ndr->iconv_convenience,ndr->flags))] */