diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-25 23:22:05 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-25 23:22:05 +0200 |
commit | eae3658674d7c04fe65b008223995ead9e2957e8 (patch) | |
tree | 3ee296d622a9303eb3592a91ed37edd6e2f755a6 /source4/librpc | |
parent | 77acb789e2ea5eca3b0602e6397df76c5af55efe (diff) | |
download | samba-eae3658674d7c04fe65b008223995ead9e2957e8.tar.gz samba-eae3658674d7c04fe65b008223995ead9e2957e8.tar.bz2 samba-eae3658674d7c04fe65b008223995ead9e2957e8.zip |
Fix compilation errors.
(This used to be commit daae053365cf6c5be7b31aa51a239c2660cfc120)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/rpc/pyrpc.c | 7 | ||||
-rw-r--r-- | source4/librpc/rpc/pyrpc.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c index b04ca0be30..0248a9a6e2 100644 --- a/source4/librpc/rpc/pyrpc.c +++ b/source4/librpc/rpc/pyrpc.c @@ -101,13 +101,18 @@ PyObject *py_dcerpc_call_wrapper(PyObject *self, PyObject *args, void *wrapped, PyObject *PyDescr_NewNdrRpcMethod(PyTypeObject *ifacetype, struct PyNdrRpcMethodDef *md) { struct wrapperbase *wb = calloc(sizeof(struct wrapperbase), 1); + PyObject *ret; wb->name = md->name; wb->flags = PyWrapperFlag_KEYWORDS; wb->wrapper = py_dcerpc_call_wrapper; wb->doc = md->doc; - return PyDescr_NewWrapper(ifacetype, wb, md); + ret = PyDescr_NewWrapper(ifacetype, wb, md); + + PyObject_SetAttrString(ret, "foo", PyString_FromString("bla")); + + return ret; } bool PyInterface_AddNdrRpcMethods(PyTypeObject *ifacetype, struct PyNdrRpcMethodDef *mds) diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h index 5ec9c6ed83..77705db9f6 100644 --- a/source4/librpc/rpc/pyrpc.h +++ b/source4/librpc/rpc/pyrpc.h @@ -21,6 +21,7 @@ #define _PYRPC_H_ #include "libcli/util/pyerrors.h" +#include "librpc/rpc/dcerpc.h" #define PY_CHECK_TYPE(type, var, fail) \ if (!type ## _Check(var)) {\ |