diff options
author | Vasilii Chernov <vchernov@inr.ru> | 2016-02-05 12:33:48 +0100 |
---|---|---|
committer | Vasilii Chernov <vchernov@inr.ru> | 2016-02-05 12:33:48 +0100 |
commit | 5349163e93a107fdfea2ad58760f6149a8d749b0 (patch) | |
tree | 84afe1008bac52a00785ba71f415ae51b1b9c768 /views/script.h | |
parent | 99c165c078222c789d5fc90a79c756c8fffdafea (diff) | |
download | pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.gz pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.bz2 pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.tar.xz pcitool-5349163e93a107fdfea2ad58760f6149a8d749b0.zip |
Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode.
Diffstat (limited to 'views/script.h')
-rw-r--r-- | views/script.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/views/script.h b/views/script.h new file mode 100644 index 0000000..2929f4c --- /dev/null +++ b/views/script.h @@ -0,0 +1,18 @@ +#ifndef _PCILIB_VIEW_SCRIPT_H +#define _PCILIB_VIEW_SCRIPT_H + +#include <pcilib.h> +#include <pcilib/view.h> +#include <Python.h> + +typedef struct { + pcilib_view_description_t base; + PyObject *py_script_module; /**< PyModule object, contains script enviroment */ + char* script_name; +} pcilib_script_view_description_t; + +#ifndef _PCILIB_VIEW_SCRIPT_C +const pcilib_view_api_description_t pcilib_script_view_api; +#endif /* _PCILIB_VIEW_SCRIPT_C */ + +#endif /* _PCILIB_VIEW_SCRIPT_H */ |