/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to views/script.h

  • Committer: Vasilii Chernov
  • Date: 2016-02-05 11:33:48 UTC
  • mto: This revision was merged to the branch mainline in revision 353.
  • Revision ID: vchernov@inr.ru-20160205113348-l4gmpvm9df3n22sx
Add support for python script properties. Correct pcilib python wrapping. Update examples. Update cmakelists for work in shadow build mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCILIB_VIEW_SCRIPT_H
 
2
#define _PCILIB_VIEW_SCRIPT_H
 
3
 
 
4
#include <pcilib.h>
 
5
#include <pcilib/view.h>
 
6
#include <Python.h>
 
7
 
 
8
typedef struct {
 
9
    pcilib_view_description_t base;
 
10
    PyObject *py_script_module; /**< PyModule object, contains script enviroment */
 
11
        char* script_name;
 
12
} pcilib_script_view_description_t;
 
13
 
 
14
#ifndef _PCILIB_VIEW_SCRIPT_C
 
15
const pcilib_view_api_description_t pcilib_script_view_api;
 
16
#endif /* _PCILIB_VIEW_SCRIPT_C */
 
17
 
 
18
#endif /* _PCILIB_VIEW_SCRIPT_H */