/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 pcilib/property.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-18 01:47:47 UTC
  • Revision ID: csa@suren.me-20151018014747-9ji2ygdhz1l9wnt5
Support properties of arbitrary type

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCILIB_PROPERTY_H
 
2
#define _PCILIB_PROPERTY_H
 
3
 
 
4
#ifdef __cplusplus
 
5
extern "C" {
 
6
#endif
 
7
/**
 
8
 * This is internal function used to add property view for all model registers. It is automatically
 
9
 * called from pcilib_add_registers and should not be called by the users. On error no new views are 
 
10
 * initalized.
 
11
 * @param[in,out] ctx - pcilib context
 
12
 * @param[in] n - number of views to initialize. 
 
13
 * @param[in] banks - array containing a bank id for each of the considered registers
 
14
 * @param[in] desc - register descriptions
 
15
 * @return - error or 0 on success
 
16
 */
 
17
int pcilib_add_register_properties(pcilib_t *ctx, size_t n, const pcilib_register_bank_t *banks, const pcilib_register_description_t *desc);
 
18
 
 
19
#ifdef __cplusplus
 
20
}
 
21
#endif
 
22
 
 
23
#endif /* _PCILIB_PROPERTY_H */
 
24
 
 
25
 
 
26
 
 
27
 
 
28
 
 
29
// free'd by user. Do we need it?
 
30