summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-26 03:07:18 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-26 03:07:18 +0200
commitd60d8e57d83acfc94fa36c59fcfb9c6e03ee02b6 (patch)
tree179df95c443cc5e543c94c859487abab057cfc4e /source4/librpc
parentfd712bb878dcfbe8a50e48361c96cc04a3ddacf5 (diff)
downloadsamba-d60d8e57d83acfc94fa36c59fcfb9c6e03ee02b6.tar.gz
Implement IRPC calls over the internal messaging bus.
(This used to be commit 777dc3a2c7b5bf855344ba3ae8c8b564c48fc0c6)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/pyrpc.c4
-rw-r--r--source4/librpc/rpc/pyrpc.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index fae3d727fa5..d8344be511f 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 0840030704c..989aeecc7b9 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_ */