summaryrefslogtreecommitdiffstats
path: root/pywrap/pcipywrap.h
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-24 14:57:16 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-24 14:57:16 +0100
commit5085fbed88cec0bdc1b339daf9cd888e184cc32c (patch)
tree320738e7c28777620ec51992ee139c9cc246893e /pywrap/pcipywrap.h
parent2c2a714e0615d6aff3773fabfd3b93e8672a40a1 (diff)
downloadpcitool-5085fbed88cec0bdc1b339daf9cd888e184cc32c.tar.gz
pcitool-5085fbed88cec0bdc1b339daf9cd888e184cc32c.tar.bz2
pcitool-5085fbed88cec0bdc1b339daf9cd888e184cc32c.tar.xz
pcitool-5085fbed88cec0bdc1b339daf9cd888e184cc32c.zip
1. Http server add tree view
2. Pcipywrap - add lock function wraps - add dma read wrap 3. Api server implement locking functionality
Diffstat (limited to 'pywrap/pcipywrap.h')
-rw-r--r--pywrap/pcipywrap.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/pywrap/pcipywrap.h b/pywrap/pcipywrap.h
index 8389445..47d91b7 100644
--- a/pywrap/pcipywrap.h
+++ b/pywrap/pcipywrap.h
@@ -65,4 +65,22 @@ PyObject* Pcipywrap_get_registers_list(Pcipywrap *self, const char *bank);
PyObject* Pcipywrap_get_register_info(Pcipywrap *self, const char* reg,const char *bank);
PyObject* Pcipywrap_get_property_list(Pcipywrap *self, const char* branch);
+PyObject* Pcipywrap_read_dma(Pcipywrap *self, unsigned char dma, size_t size);
+
+PyObject* Pcipywrap_lock_global(Pcipywrap *self);
+void Pcipywrap_unlock_global(Pcipywrap *self);
+
+/*!
+ * \brief Wrap for pcilib_lock
+ * \param lock_id lock identificator
+ * \warning This function should be called only under Python standart threading lock.
+ * Otherwise it will stuck with more than 1 threads. See /xml/test_pywrap/test_prop_mt.py
+ * for example.
+ * \return 1, serialized to PyObject or NULL with exeption text, if failed.
+ */
+PyObject* Pcipywrap_lock(Pcipywrap *self, const char *lock_id);
+
+PyObject* Pcipywrap_try_lock(Pcipywrap *self, const char *lock_id);
+PyObject* Pcipywrap_unlock(Pcipywrap *self, const char *lock_id);
+
#endif /* PCIPYWRAP_H */