/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/enum.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-09-24 02:28:45 UTC
  • mfrom: (305.1.19 views)
  • Revision ID: csa@suren.me-20150924022845-p7hc8lh8v0q48g0r
Finalyze XML support and provide initial support for views (only descriptions so far)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCILIB_VIEW_ENUM_H
 
2
#define _PCILIB_VIEW_ENUM_H
 
3
 
 
4
#include <pcilib.h>
 
5
#include <pcilib/view.h>
 
6
 
 
7
typedef struct {
 
8
    pcilib_register_value_t value, min, max;    /**< the value or value-range for which the name is defined, while wrtiting the name the value will be used even if range is specified */
 
9
    const char *name;                           /**< corresponding string to value */
 
10
} pcilib_value_name_t;
 
11
 
 
12
typedef struct {
 
13
    pcilib_view_description_t base;
 
14
    pcilib_value_name_t *names;
 
15
} pcilib_enum_view_description_t;
 
16
 
 
17
 
 
18
#ifndef _PCILIB_VIEW_ENUM_C
 
19
extern const pcilib_view_api_description_t pcilib_enum_view_static_api;
 
20
extern const pcilib_view_api_description_t pcilib_enum_view_xml_api;
 
21
#endif /* _PCILIB_VIEW_ENUM_C */
 
22
 
 
23
#endif /* _PCILIB_VIEW_ENUM_H */