pidl:Python: provide a PyTypeObject with METH_CLASS __import__() and __export__(...
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Sep 2016 14:33:38 +0000 (16:33 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 26 Oct 2016 09:20:19 +0000 (11:20 +0200)
commite0324c0cf7e7c363a5791c2e35c8820b79640a47
tree587303e26c6c788bf9ae1f744ce85982bac13849
parent596f917693315cddcf4c453e75410ef786a7a8b0
pidl:Python: provide a PyTypeObject with METH_CLASS __import__() and __export__() hooks

These are wrappers around the currently public C functions
'py_import_*() and 'py_export_*().

In order to let other python module use these function, we should
resolve the needed type object and call the __import__() or __export__()
hooks instead of linking to the other shared module at C level.

We already do the same for structs.

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