summaryrefslogtreecommitdiffstats
path: root/pcilib/pcipywrap.i
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-11 12:00:54 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-11 12:00:54 +0100
commitf526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a (patch)
treea818ed42d630e807e9886767e326c8970a77c78d /pcilib/pcipywrap.i
parentd9a31945a92a76e590657dc2e65bb20b6ea95d90 (diff)
downloadpcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.tar.gz
pcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.tar.bz2
pcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.tar.xz
pcitool-f526c4a5a3e4f35bb1c4b03af1f3244a8c0db48a.zip
Change error logging method in Python wrap. Move functions, that converts values between PyObject and pcilib_value_t to py.c
Diffstat (limited to 'pcilib/pcipywrap.i')
-rw-r--r--pcilib/pcipywrap.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/pcilib/pcipywrap.i b/pcilib/pcipywrap.i
index 10a95a7..2da8654 100644
--- a/pcilib/pcipywrap.i
+++ b/pcilib/pcipywrap.i
@@ -1,5 +1,8 @@
%module pcipywrap
+%init %{
+ init_pcipywrap_module();
+%}
extern PyObject* createPcilibInstance(const char *fpga_device, const char *model = NULL);
extern PyObject* setPcilib(PyObject* addr);