diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-26 03:07:18 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-26 03:07:18 +0200 |
commit | d60d8e57d83acfc94fa36c59fcfb9c6e03ee02b6 (patch) | |
tree | 179df95c443cc5e543c94c859487abab057cfc4e /source4/librpc/rpc | |
parent | fd712bb878dcfbe8a50e48361c96cc04a3ddacf5 (diff) | |
download | samba-d60d8e57d83acfc94fa36c59fcfb9c6e03ee02b6.tar.gz samba-d60d8e57d83acfc94fa36c59fcfb9c6e03ee02b6.tar.bz2 samba-d60d8e57d83acfc94fa36c59fcfb9c6e03ee02b6.zip |
Implement IRPC calls over the internal messaging bus.
(This used to be commit 777dc3a2c7b5bf855344ba3ae8c8b564c48fc0c6)
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 4 | ||||
-rw-r--r-- | source4/librpc/rpc/pyrpc.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index fae3d727fa..d8344be511 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -71,7 +71,7 @@ static PyObject *py_dcerpc_call_wrapper(PyObject *self, PyObject *args, void *wr } -bool PyInterface_AddNdrRpcMethods(PyTypeObject *ifacetype, struct PyNdrRpcMethodDef *mds) +bool PyInterface_AddNdrRpcMethods(PyTypeObject *ifacetype, const struct PyNdrRpcMethodDef *mds) { int i; for (i = 0; mds[i].name; i++) { @@ -83,7 +83,7 @@ bool PyInterface_AddNdrRpcMethods(PyTypeObject *ifacetype, struct PyNdrRpcMethod wb->wrapper = (wrapperfunc)py_dcerpc_call_wrapper; wb->doc = discard_const_p(char, mds[i].doc); - ret = PyDescr_NewWrapper(ifacetype, wb, &mds[i]); + ret = PyDescr_NewWrapper(ifacetype, wb, discard_const_p(void, &mds[i])); PyDict_SetItemString(ifacetype->tp_dict, mds[i].name, (PyObject *)ret); diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h index 0840030704..989aeecc7b 100644 --- a/source4/librpc/rpc/pyrpc.h +++ b/source4/librpc/rpc/pyrpc.h @@ -66,6 +66,6 @@ struct PyNdrRpcMethodDef { const struct ndr_interface_table *table; }; -bool PyInterface_AddNdrRpcMethods(PyTypeObject *object, struct PyNdrRpcMethodDef *mds); +bool PyInterface_AddNdrRpcMethods(PyTypeObject *object, const struct PyNdrRpcMethodDef *mds); #endif /* _PYRPC_H_ */ |