diff options
author | Vasilii Chernov <vchernov@inr.ru> | 2016-02-11 10:37:24 +0100 |
---|---|---|
committer | Vasilii Chernov <vchernov@inr.ru> | 2016-02-11 10:37:24 +0100 |
commit | d9a31945a92a76e590657dc2e65bb20b6ea95d90 (patch) | |
tree | 22dd29b528d62625ec8801504282d33445646d1f /pcilib/py.h | |
parent | dce856c1a16098fe7a1df2338df60073261da94a (diff) | |
download | pcitool-d9a31945a92a76e590657dc2e65bb20b6ea95d90.tar.gz pcitool-d9a31945a92a76e590657dc2e65bb20b6ea95d90.tar.bz2 pcitool-d9a31945a92a76e590657dc2e65bb20b6ea95d90.tar.xz pcitool-d9a31945a92a76e590657dc2e65bb20b6ea95d90.zip |
Merge script and transform view. Add get register and properties info to python wrap.
Diffstat (limited to 'pcilib/py.h')
-rw-r--r-- | pcilib/py.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pcilib/py.h b/pcilib/py.h index 21c31e9..8fd749c 100644 --- a/pcilib/py.h +++ b/pcilib/py.h @@ -1,7 +1,10 @@ #ifndef _PCILIB_PY_H #define _PCILIB_PY_H +#include "pcilib.h" + typedef struct pcilib_py_s pcilib_py_t; +typedef struct pcilib_script_s pcilib_script_t; #ifdef __cplusplus extern "C" { @@ -11,6 +14,12 @@ int pcilib_init_py(pcilib_t *ctx); int pcilib_py_eval_string(pcilib_t *ctx, const char *codestr, pcilib_value_t *value); void pcilib_free_py(pcilib_t *ctx); + +int pcilib_init_py_script(pcilib_t *ctx, char* module_name, pcilib_script_t **module, pcilib_access_mode_t *mode); +int pcilib_free_py_script(pcilib_script_t *module); +int pcilib_script_read(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val); +int pcilib_script_write(pcilib_t *ctx, pcilib_script_t *module, pcilib_value_t *val); + #ifdef __cplusplus } #endif |