1
#ifndef _PCITOOL_PCIPYWRAP_H
2
#define _PCITOOL_PCIPYWRAP_H
7
* \brief Converts pcilib_value_t to PyObject.
8
* \param ctx pointer to pcilib_t context
9
* \param val pointer to pcilib_value_t to convert
10
* \return PyObject, containing value. NULL with error message, sended to errstream.
12
PyObject* pcilib_convert_val_to_pyobject(pcilib_t* ctx, pcilib_value_t *val, void (*errstream)(const char* msg, ...));
16
* \brief Converts PyObject to pcilib_value_t.
17
* \param ctx pcilib context
18
* \param pyVal python object, containing value
19
* \param val initialized polymorphic value
20
* \return 0 on success or memory error
22
int pcilib_convert_pyobject_to_val(pcilib_t* ctx, PyObject* pyVal, pcilib_value_t *val);
25
#endif /* _PCITOOL_PCIPYWRAP_H */