summaryrefslogtreecommitdiff
path: root/source4/lib/messaging
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-22 04:03:55 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-22 04:03:55 +0100
commit2396d8d613eed8ab76358056da5fcaf68c71fbf4 (patch)
treecad195b95e996ce87e39205f754a9460162ad36d /source4/lib/messaging
parenta6bd295229cf1a245e2ced83ac4e10941207c526 (diff)
downloadsamba-2396d8d613eed8ab76358056da5fcaf68c71fbf4.tar.gz
samba-2396d8d613eed8ab76358056da5fcaf68c71fbf4.tar.bz2
samba-2396d8d613eed8ab76358056da5fcaf68c71fbf4.zip
Use consistent names for dcerpc python modules; fixes messaging test.
Diffstat (limited to 'source4/lib/messaging')
-rw-r--r--source4/lib/messaging/pymessaging.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/lib/messaging/pymessaging.c b/source4/lib/messaging/pymessaging.c
index ad8f955466..7a5fdb34bf 100644
--- a/source4/lib/messaging/pymessaging.c
+++ b/source4/lib/messaging/pymessaging.c
@@ -541,8 +541,12 @@ static bool irpc_AddNdrRpcMethods(PyTypeObject *ifacetype, const struct PyNdrRpc
void initmessaging(void)
{
- extern void initirpc(void);
PyObject *mod;
+ PyObject *dep_irpc;
+
+ dep_irpc = PyImport_ImportModule("samba.dcerpc.irpc");
+ if (dep_irpc == NULL)
+ return;
if (PyType_Ready(&irpc_ClientConnectionType) < 0)
return;
@@ -560,8 +564,6 @@ void initmessaging(void)
if (mod == NULL)
return;
- initirpc();
-
Py_INCREF((PyObject *)&irpc_ClientConnectionType);
PyModule_AddObject(mod, "ClientConnection", (PyObject *)&irpc_ClientConnectionType);