diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-12-20 21:19:48 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-12-20 21:19:48 +0100 |
commit | ec80992ef5b54c443e41ebb91e793384907e68ba (patch) | |
tree | d453b7df628a89e236cebf9426d5c80e674c8e6a /lib/tevent/pytevent.c | |
parent | 9b16a5ac163025c49b40b7f32f6145da46cd75b8 (diff) | |
download | samba-ec80992ef5b54c443e41ebb91e793384907e68ba.tar.gz samba-ec80992ef5b54c443e41ebb91e793384907e68ba.tar.xz samba-ec80992ef5b54c443e41ebb91e793384907e68ba.zip |
Fix tevent python module build as part of samba 4.
Diffstat (limited to 'lib/tevent/pytevent.c')
-rw-r--r-- | lib/tevent/pytevent.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tevent/pytevent.c b/lib/tevent/pytevent.c index b379911b9c..02e0db3f84 100644 --- a/lib/tevent/pytevent.c +++ b/lib/tevent/pytevent.c @@ -103,8 +103,14 @@ void inittevent(void) { PyObject *m; + if (PyType_Ready(&PyEventContext) < 0) + return; + m = Py_InitModule3("tevent", tevent_methods, "Event management."); if (m == NULL) return; + + Py_INCREF(&PyEventContext); + PyModule_AddObject(m, "EventContext", (PyObject *)&PyEventContext); } |