summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/pyrpc.c7
-rw-r--r--source4/librpc/rpc/pyrpc.h1
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)) {\