pidl:Python: add PyTypeObject objects for function structs
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Sep 2016 07:20:44 +0000 (09:20 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 26 Oct 2016 09:20:19 +0000 (11:20 +0200)
commit57539c84416aeb8fc8e3a8653f790b329e6fa9a1
treec1353d35bcebaf6075d9819df04d62945eb5809c
parenta546124f10d1e2bee29bc06c0b8754257d2bdc23
pidl:Python: add PyTypeObject objects for function structs

They provide get/set methods for the in_* and out_* elements
and the magic __ndr_{push,pull,print}_{in,out}__ hooks to enable
the marshalling via ndr_{push,pull,print}_{in,out}().

This provides an easy way to generate and parse the payload of
DCERPC requests and responses, which is very useful for writing
tests.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm