/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/py.h

  • Committer: Vasilii Chernov
  • Date: 2016-02-12 13:43:20 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160212134320-qj1oj1v4g6ixn9c8
1. Cmakelists - move copy xml folder command to root file
2. - Move set python paths code to python module init funtction
     - pci.c move python module init block code after checking model
       to get paths before it runs.
   - Fix set python path code to work with PYTHONPATH
   - Update pci run script to work with PYTHONPATH
   - Fix python finalize code
3. Change pcilib_script_s interacting method. Now it stores in hash.
4. Change names of some fucntions to more unified ones
5. Remove old unused function pcilib_xml_create_script_or_transform_view
6. cli - disable reading register after set if write_verification flag is off
7. Remove uninformative error messages fro Python wrap.
8. - Server.py - add read/write property/register command handling
   - Add help message
   - Correcting paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#include "pcilib.h"
5
5
 
6
6
typedef struct pcilib_py_s pcilib_py_t;
7
 
typedef struct pcilib_script_s pcilib_script_t;
8
7
 
9
8
#ifdef __cplusplus
10
9
extern "C" {
15
14
void pcilib_free_py(pcilib_t *ctx);
16
15
 
17
16
 
18
 
int pcilib_init_py_script(pcilib_t *ctx, char* module_name, pcilib_script_t **module, pcilib_access_mode_t *mode);
19
 
int pcilib_free_py_script(pcilib_script_t *module);
20
 
int pcilib_script_read(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val);
21
 
int pcilib_script_write(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val);
 
17
int pcilib_py_init_script(pcilib_t *ctx, char* module_name, pcilib_access_mode_t *mode);
 
18
int pcilib_py_free_script(char* module_name);
 
19
int pcilib_script_read(pcilib_t *ctx, char* module_name, pcilib_value_t *val);
 
20
int pcilib_script_write(pcilib_t *ctx, char* module_name, pcilib_value_t *val);
22
21
 
23
22
 
24
23
/*!
27
26
 * \param val pointer to pcilib_value_t to convert
28
27
 * \return PyObject, containing value. NULL with error message, sended to errstream.
29
28
 */
30
 
void* pcilib_convert_val_to_pyobject(pcilib_t* ctx, pcilib_value_t *val);
 
29
void* pcilib_get_value_as_pyobject(pcilib_t* ctx, pcilib_value_t *val);
31
30
 
32
31
 
33
32
/*!
37
36
 * \param val initialized polymorphic value
38
37
 * \return 0 on success or memory error
39
38
 */
40
 
int pcilib_convert_pyobject_to_val(pcilib_t* ctx, void* pyVal, pcilib_value_t *val);
 
39
int pcilib_set_value_from_pyobject(pcilib_t* ctx, void* pyVal, pcilib_value_t *val);
41
40
 
42
41
 
43
42
#ifdef __cplusplus