From 5349163e93a107fdfea2ad58760f6149a8d749b0 Mon Sep 17 00:00:00 2001 From: Vasilii Chernov Date: Fri, 5 Feb 2016 12:33:48 +0100 Subject: Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode. --- views/script.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 views/script.h (limited to 'views/script.h') 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 +#include +#include + +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 */ -- cgit v1.2.3