diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-10-07 06:39:03 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-10-07 09:56:23 +1100 |
commit | 1d0fb1e0fba3cf4d04d4602ed4e717912804e5de (patch) | |
tree | 504f8e1908479780064fc64fa70bc8a34887cbab /lib | |
parent | 7816f9d7abf5203537c3bb7afb9511b00d2d974f (diff) | |
download | samba-1d0fb1e0fba3cf4d04d4602ed4e717912804e5de.tar.gz samba-1d0fb1e0fba3cf4d04d4602ed4e717912804e5de.tar.xz samba-1d0fb1e0fba3cf4d04d4602ed4e717912804e5de.zip |
tdr: teach TDR about uint1632 enums
TDB doesn't have NDR64, but it needs to know how to map the new types
from pidl
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdr/tdr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/tdr/tdr.c b/lib/tdr/tdr.c index 293436ed5e3..ce67003f8bf 100644 --- a/lib/tdr/tdr.c +++ b/lib/tdr/tdr.c @@ -92,6 +92,11 @@ NTSTATUS tdr_pull_uint16(struct tdr_pull *tdr, TALLOC_CTX *ctx, uint16_t *v) return NT_STATUS_OK; } +NTSTATUS tdr_pull_uint1632(struct tdr_pull *tdr, TALLOC_CTX *ctx, uint16_t *v) +{ + return tdr_pull_uint16(tdr, ctx, v); +} + NTSTATUS tdr_push_uint16(struct tdr_push *tdr, const uint16_t *v) { TDR_PUSH_NEED_BYTES(tdr, 2); @@ -100,6 +105,11 @@ NTSTATUS tdr_push_uint16(struct tdr_push *tdr, const uint16_t *v) return NT_STATUS_OK; } +NTSTATUS tdr_push_uint1632(struct tdr_push *tdr, const uint16_t *v) +{ + return tdr_push_uint16(tdr, v); +} + NTSTATUS tdr_print_uint16(struct tdr_print *tdr, const char *name, uint16_t *v) { tdr->print(tdr, "%-25s: 0x%02x (%u)", name, *v, *v); |