/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to pcilib/xml.h

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-08 01:15:51 UTC
  • Revision ID: csa@suren.me-20160308011551-z7qvf08s6daer4l2
Support XML configuration of device models

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
extern "C" {
41
41
#endif
42
42
 
 
43
/**
 
44
 * Resolves device model from vendor and device ids using XML configuration
 
45
 * The association of vendor/device id pairs with model are provided devices.xml under PCILIB_MODEL_DIR
 
46
 * @param[in,out] ctx   - pcilib context
 
47
 * @param[in] vendor_id - the vendor id
 
48
 * @param[in] device_id - the device id
 
49
 * @return              - the name of model or NULL on an error and unknown device. It is caller responsibility to free returned string.
 
50
 */
 
51
char *pcilib_detect_xml_model(pcilib_t *ctx, unsigned int vendor_id, unsigned int device_id);
 
52
 
43
53
/** Initializes XML stack and loads a default set of XML files. 
44
54
 * The default location for XML files is /usr/local/share/pcilib/models/@b{model}.
45
55
 * This can be altered using CMake PCILIB_MODEL_DIR variable while building or using