From fe15b46d61ee50f4225458faf963c818cde3e283 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 15 Oct 2004 09:22:21 +0000 Subject: r2990: Add support to pidl for autogenerating ndr_size_*() functions. Adding the [gensize] property to a struct or union will make pidl generate a ndr_size_*() function. (not all nasty bits of NDR are completely covered yet by the ndr_size*() functions, support for those will be added when necessary) I also have a local patch (not applied now) that simplifies the pidl output and eliminates the number of functions required. It would, however, make pidl more complex. (This used to be commit 7c823f886afd0c4c6ee838f17882ca0658417011) --- source4/librpc/idl/epmapper.idl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/librpc/idl/epmapper.idl') diff --git a/source4/librpc/idl/epmapper.idl b/source4/librpc/idl/epmapper.idl index 7ea58e354f..18bb6bf7d7 100644 --- a/source4/librpc/idl/epmapper.idl +++ b/source4/librpc/idl/epmapper.idl @@ -193,8 +193,8 @@ interface epmapper epm_floor floors[num_floors]; } epm_towers; - typedef struct { - [value(ndr_size_epm_towers(&r->towers))] uint32 tower_length; + typedef [gensize] struct { + [value(ndr_size_epm_towers(0, &r->towers,ndr->flags))] uint32 tower_length; [subcontext(4)] epm_towers towers; } epm_twr_t; -- cgit