property.h 815 B

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