Skip to content

Commit

Permalink
API: clarify that XML input errors are reported either in set_xml*() …
Browse files Browse the repository at this point in the history
…or load()

set_xml() when using libxml, load() when using our minimalistic parser.

Refs #623

Signed-off-by: Brice Goglin <[email protected]>
  • Loading branch information
bgoglin committed Oct 10, 2023
1 parent 4bd8185 commit e6889d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/hwloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,10 @@ HWLOC_DECLSPEC int hwloc_topology_set_synthetic(hwloc_topology_t __hwloc_restric
* \note On success, the XML component replaces the previously enabled
* component (if any), but the topology is not actually modified until
* hwloc_topology_load().
*
* \note If an invalid XML input file is given, the error may be reported
* either here or later by hwloc_topology_load() depending on the XML library
* used by hwloc.
*/
HWLOC_DECLSPEC int hwloc_topology_set_xml(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict xmlpath);

Expand Down Expand Up @@ -2128,6 +2132,10 @@ HWLOC_DECLSPEC int hwloc_topology_set_xml(hwloc_topology_t __hwloc_restrict topo
* \note On success, the XML component replaces the previously enabled
* component (if any), but the topology is not actually modified until
* hwloc_topology_load().
*
* \note If an invalid XML input file is given, the error may be reported
* either here or later by hwloc_topology_load() depending on the XML library
* used by hwloc.
*/
HWLOC_DECLSPEC int hwloc_topology_set_xmlbuffer(hwloc_topology_t __hwloc_restrict topology, const char * __hwloc_restrict buffer, int size);

Expand Down

0 comments on commit e6889d3

Please sign in to comment.