Support for arrays of Unions in pidl

Stefan (metze) Metzmacher metze at samba.org
Sat Feb 19 09:35:51 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jelmer,

while you're cleaning up pidl, would you be able to add support
for push/pull arrays of unions for me.

the problem I want to solve is to get rid of the hand marschal stuff in ndr_spoolss_buf.c

so what I would like to support is something like this is the idl

	WERROR spoolss_EnumForms(
		[in,ref] policy_handle *handle,
		[in] uint32 level,
		[in] DATA_BLOB *buffer,
		[out,subcontext(4),switch_is(level),flag(stage2)] *spoolss_FormInfo[count];
		[in,out,ref] uint32 *buf_size,
		[out] uint32 count
	);

the flag(stage2) is just an idea to make it possible to first just pull the subcontext buffer
, then the buf_size and the count and then in a 2nd run analyse the subcontext buffer

- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCFwh3m70gjA5TCD8RAgMPAKCpyTc2PZXiSe+k2q8XxP4POTc9PQCfSY6/
Hc73okeCj8UdbhPK06FCfJw=
=9wBe
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list