diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-25 23:14:48 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-25 23:14:48 +0200 |
commit | 77acb789e2ea5eca3b0602e6397df76c5af55efe (patch) | |
tree | 8d889b516a44e39b0a9f9862cf87959f0167eda3 /source4/librpc/rpc/pyrpc.h | |
parent | 01fd6886466f1976d30b4deba4fe224344f760c2 (diff) | |
download | samba-77acb789e2ea5eca3b0602e6397df76c5af55efe.tar.gz samba-77acb789e2ea5eca3b0602e6397df76c5af55efe.tar.bz2 samba-77acb789e2ea5eca3b0602e6397df76c5af55efe.zip |
Trim the size of the Python bindings a bit.
(This used to be commit 717ce0b640a5c3aa62804b9869ef4dcc0f71b7ba)
Diffstat (limited to 'source4/librpc/rpc/pyrpc.h')
-rw-r--r-- | source4/librpc/rpc/pyrpc.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h index 209d7d3f1f..5ec9c6ed83 100644 --- a/source4/librpc/rpc/pyrpc.h +++ b/source4/librpc/rpc/pyrpc.h @@ -52,4 +52,20 @@ PyAPI_DATA(PyTypeObject) dcerpc_InterfaceType; void PyErr_SetDCERPCStatus(struct dcerpc_pipe *pipe, NTSTATUS status); +typedef bool (*py_data_pack_fn) (PyObject *args, PyObject *kwargs, void *r); +typedef PyObject *(*py_data_unpack_fn) (void *r); + +struct PyNdrRpcMethodDef { + const char *name; + const char *doc; + dcerpc_call_fn call; + py_data_pack_fn pack_in_data; + py_data_unpack_fn unpack_out_data; + uint32_t opnum; + const struct ndr_interface_table *table; +}; + +bool PyInterface_AddNdrRpcMethods(PyTypeObject *object, struct PyNdrRpcMethodDef *mds); +PyObject *PyDescr_NewNdrRpcMethod(PyTypeObject *type, struct PyNdrRpcMethodDef *md); + #endif /* _PYRPC_H_ */ |