From e5ac820b9ea8416537b65faaf43fdc45924a66b1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 15 Sep 2010 18:49:06 +1000 Subject: s4-pyrpc: added py_return_ndr_struct() This can be used to return structures from other python interfaces as python objects Pair-Programmed-With: Andrew Bartlett --- source4/librpc/rpc/pyrpc_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source4/librpc/rpc/pyrpc_util.h') diff --git a/source4/librpc/rpc/pyrpc_util.h b/source4/librpc/rpc/pyrpc_util.h index abd7f6ba7b..1efe112a11 100644 --- a/source4/librpc/rpc/pyrpc_util.h +++ b/source4/librpc/rpc/pyrpc_util.h @@ -55,4 +55,7 @@ bool py_check_dcerpc_type(PyObject *obj, const char *module, const char *typenam bool PyInterface_AddNdrRpcMethods(PyTypeObject *object, const struct PyNdrRpcMethodDef *mds); PyObject *py_dcerpc_interface_init_helper(PyTypeObject *type, PyObject *args, PyObject *kwargs, const struct ndr_interface_table *table); +PyObject *py_return_ndr_struct(const char *module_name, const char *type_name, + TALLOC_CTX *r_ctx, void *r); + #endif /* __PYRPC_UTIL_H__ */ -- cgit