summaryrefslogtreecommitdiffstats
path: root/views/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/script.h')
-rw-r--r--views/script.h18
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 */