summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-24 22:13:32 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-24 22:13:32 +0200
commit75e7962d2efb1aa6e45ca999b1a93829406de540 (patch)
treebb8c3fc851a4ccdb54c15ee6e19befe2b63153b2 /source4/librpc
parentf9c36fae757d197ee4de06f0ecf94ae13faad0de (diff)
downloadsamba-75e7962d2efb1aa6e45ca999b1a93829406de540.tar.gz
samba-75e7962d2efb1aa6e45ca999b1a93829406de540.tar.bz2
samba-75e7962d2efb1aa6e45ca999b1a93829406de540.zip
Add convenience functions for setting Python objects from errors.
(This used to be commit f1de723b89251cbc8140b838941f304a34871bf3)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/pyrpc.c1
-rw-r--r--source4/librpc/rpc/pyrpc.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/librpc/rpc/pyrpc.c b/source4/librpc/rpc/pyrpc.c
index 8a0486c05e..33b3c63571 100644
--- a/source4/librpc/rpc/pyrpc.c
+++ b/source4/librpc/rpc/pyrpc.c
@@ -22,7 +22,6 @@
#include "librpc/rpc/pyrpc.h"
#include "librpc/rpc/dcerpc.h"
#include "lib/events/events.h"
-#include "libcli/util/pyerrors.h"
static PyObject *py_iface_server_name(PyObject *obj, void *closure)
{
diff --git a/source4/librpc/rpc/pyrpc.h b/source4/librpc/rpc/pyrpc.h
index 386b994494..3857f53634 100644
--- a/source4/librpc/rpc/pyrpc.h
+++ b/source4/librpc/rpc/pyrpc.h
@@ -20,6 +20,8 @@
#ifndef _PYRPC_H_
#define _PYRPC_H_
+#include "libcli/util/pyerrors.h"
+
#define PY_CHECK_TYPE(type, var, fail) \
if (!type ## _Check(var)) {\
PyErr_Format(PyExc_TypeError, "Expected type %s", type ## _Type.tp_name); \