/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/py.h

  • Committer: Vasilii Chernov
  • Date: 2016-02-11 11:00:54 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160211110054-h6x2oxdx1dqaekhe
Change error logging method in Python wrap. Move functions, that converts values between PyObject and pcilib_value_t to py.c

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
int pcilib_script_read(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val);
21
21
int pcilib_script_write(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val);
22
22
 
 
23
 
 
24
/*!
 
25
 * \brief Converts pcilib_value_t to PyObject.
 
26
 * \param ctx pointer to pcilib_t context
 
27
 * \param val pointer to pcilib_value_t to convert
 
28
 * \return PyObject, containing value. NULL with error message, sended to errstream.
 
29
 */
 
30
void* pcilib_convert_val_to_pyobject(pcilib_t* ctx, pcilib_value_t *val);
 
31
 
 
32
 
 
33
/*!
 
34
 * \brief Converts PyObject to pcilib_value_t.
 
35
 * \param ctx pcilib context
 
36
 * \param pyVal python object, containing value
 
37
 * \param val initialized polymorphic value
 
38
 * \return 0 on success or memory error
 
39
 */
 
40
int pcilib_convert_pyobject_to_val(pcilib_t* ctx, void* pyVal, pcilib_value_t *val);
 
41
 
 
42
 
23
43
#ifdef __cplusplus
24
44
}
25
45
#endif